|
@@ -1045,7 +1045,9 @@ export default {
|
|
|
_that.myGroup = window.L.layerGroup(_that.layers)
|
|
|
}
|
|
|
}
|
|
|
- _that.map.addLayer(_that.myGroup)
|
|
|
+ if (_that.myGroup != undefined && _that.myGroup != false) {
|
|
|
+ _that.map.addLayer(_that.myGroup)
|
|
|
+ }
|
|
|
_that.map.addLayer(_that.isAggregationLayers)
|
|
|
},
|
|
|
setMarkersByType: function(markersList, type) { //地图标点(根据类型,可取消落点 clearMByType方法)
|
|
@@ -1219,7 +1221,7 @@ export default {
|
|
|
},
|
|
|
dropLocation: function(lat, lng) { //落点定位
|
|
|
|
|
|
- this.map.flyTo([lat, lng], 14, { duration: 2 })
|
|
|
+ this.map.flyTo([lat, lng], 13, { duration: 2 })
|
|
|
|
|
|
// this.controlLevel(12)
|
|
|
// setTimeout(() => {
|