地图
This commit is contained in:
@@ -32,8 +32,7 @@
|
|||||||
polygons: [],
|
polygons: [],
|
||||||
labels: [],
|
labels: [],
|
||||||
businessName: '',
|
businessName: '',
|
||||||
ops: {
|
ops: {},
|
||||||
},
|
|
||||||
markers: [],
|
markers: [],
|
||||||
isShow: false,
|
isShow: false,
|
||||||
MarkerCluster: null,
|
MarkerCluster: null,
|
||||||
@@ -61,9 +60,9 @@
|
|||||||
this.isShow = false
|
this.isShow = false
|
||||||
this.map.easeTo({
|
this.map.easeTo({
|
||||||
center: new this.lib.LatLng(item.lat, item.lng),
|
center: new this.lib.LatLng(item.lat, item.lng),
|
||||||
zoom: 17
|
zoom: 20
|
||||||
}, {
|
}, {
|
||||||
duration: 2000
|
duration: 800
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -155,8 +154,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.config.latlng && map.setCenter(this.config.latlng)
|
|
||||||
|
|
||||||
this.MarkerCluster = new TMap.MarkerCluster({
|
this.MarkerCluster = new TMap.MarkerCluster({
|
||||||
map, gridSize: 60,
|
map, gridSize: 60,
|
||||||
enableDefaultStyle: false, // 关闭默认样式
|
enableDefaultStyle: false, // 关闭默认样式
|
||||||
@@ -166,7 +163,8 @@
|
|||||||
content: `${e.name}`,
|
content: `${e.name}`,
|
||||||
properties: {...e}
|
properties: {...e}
|
||||||
})) || [],
|
})) || [],
|
||||||
zoomOnClick: true
|
zoomOnClick: true,
|
||||||
|
maxZoom: 18
|
||||||
})
|
})
|
||||||
this.setCenter(points.map(e => {
|
this.setCenter(points.map(e => {
|
||||||
return new TMap.LatLng(e.lat, e.lng)
|
return new TMap.LatLng(e.lat, e.lng)
|
||||||
|
|||||||
Reference in New Issue
Block a user