options = {
tooltip: {
show: tre,
triggerOn: 'item'
},
geo: {
show: true,
map: 'china',
zoom: 1,
label: {
show: true,
color: '#ccc',
fontSize: '12'
},
left: 'center',
roam: false,
itemStyle: {
normal: {
areaColor: '#243141',
borderColor: '#B7A770',
},
emphasis: {
areaColor: '#4499d0',
}
}
},
series: [
{
name: '散点',
type: 'effectScatter',
coordinateSystem: 'geo',
symbol: ['circle'],
symbolSize: 7,
hoverAnimation: true,
zlevel: 1,
rippleEffect: {
brushType: 'stroke',
scale: 4
},
data: this.convertData(WarehouseGeo),
itemStyle: {
normal: {
color: '#FB9E00',
shadowBlur: 10,
shadowColor: '#FB9E00'
},
emphasis: {
}
}
}
]
}
export const WarehouseGeo = {
北京: { value: [123.241607, 45.857575] },
上海: { value: [115.080221, 35.2801] }
}