Browse Source

地图标点

master
1181364@qq.com 2 years ago
parent
commit
807b6499bc
  1. 18
      src/views/dashboard/components/HomeMap.vue

18
src/views/dashboard/components/HomeMap.vue

@ -17,6 +17,20 @@
chart: null, chart: null,
startCharts: null, startCharts: null,
charPie3currentIndex: 0, charPie3currentIndex: 0,
markPointData: [
{
name: '河北省第一仓库',
coord: [114.693382, 37.483596],
},
{
name: '河北省第二仓库',
coord: [115.793379, 37.483596]
},
{
name: '河北省第三仓库',
coord: [116.693382, 38.483596],
}
],
dataLen: 0 dataLen: 0
} }
}, },
@ -186,6 +200,10 @@
type: 'map', type: 'map',
roam: true, roam: true,
map: 'xingtai', map: 'xingtai',
markPoint: {
symbolSize: [20, 40],
data: this.markPointData
},
label: { label: {
show: false show: false
// formatter: '{b}:{@score}' // formatter: '{b}:{@score}'

Loading…
Cancel
Save