fix:处理map的重复加载问题

This commit is contained in:
zhangyu
2020-12-21 15:35:25 +08:00
parent 097405356c
commit def02495b0

View File

@@ -947,6 +947,10 @@
this.$get('sysConfig',param).then(response=>{
if(response.code == 200){
let mapConfig=JSON.parse(response.data.paramKey.map_center_config);
if(this.map){
this.map.remove();
this.map=null;
}
let map = L.map("map",{
minZoom:mapConfig.minZoom,
maxZoom:mapConfig.maxZoom,