标签:name spl cte popup sel 清除 let bind layer
动态显示一个标签:
L.marker([obj.Y,obj.X]).addTo(map).bindPopup(obj.name).openPopup();
let layers=[]; let myGroup=L.layerGroup(layers); let that = this; this.bus.$on("selectedTree",function(obj){ //清除点位(清除一组点位) layers.splice(0,layers.length); myGroup.clearLayers(); //具体操作 //... });
标签:name spl cte popup sel 清除 let bind layer
原文地址:https://www.cnblogs.com/yingyigongzi/p/10856925.html