|
@@ -1012,8 +1012,10 @@ export default {
|
|
_that.myGroup = window.L.layerGroup(_that.layers)
|
|
_that.myGroup = window.L.layerGroup(_that.layers)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.map.addLayer(_that.isAggregationLayers)
|
|
|
|
- this.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方法)
|
|
setMarkersByType: function(markersList, type) { //地图标点(根据类型,可取消落点 clearMByType方法)
|
|
const _that = this
|
|
const _that = this
|