|
@@ -426,6 +426,7 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.activeIndex = 0;
|
|
|
this.initMap();
|
|
|
+ // this.openYjjbnt();
|
|
|
// this.addXzqLayer();
|
|
|
// this.bindPopup();
|
|
|
// this.closeXzqLayer();
|
|
@@ -1058,7 +1059,7 @@ export default {
|
|
|
this.map.removeLayer(this.xzqLayer);
|
|
|
this.xzqLayer = null;
|
|
|
}
|
|
|
- let layer= L.geoJSON(xsq, {
|
|
|
+ let layer = L.geoJSON(xsq, {
|
|
|
style: function (feature) {
|
|
|
return { color: "blue", fillOpacity: 0 };
|
|
|
},
|
|
@@ -1081,6 +1082,7 @@ export default {
|
|
|
this.xzqLayer.closePopup();
|
|
|
this.map.removeLayer(this.xzqLayer);
|
|
|
this.xzqLayer = null;
|
|
|
+ this.closeYjjbnt();
|
|
|
}
|
|
|
},
|
|
|
locationByGeojson(geojson, name) {
|
|
@@ -1368,6 +1370,13 @@ export default {
|
|
|
this.switchMapLayer(yjjbntLayer);
|
|
|
}
|
|
|
},
|
|
|
+ closeYjjbnt() {
|
|
|
+ let yjjbntLayer = this.layers[5].layers[0];
|
|
|
+ if(yjjbntLayer.checked) {
|
|
|
+ yjjbntLayer.checked = false;
|
|
|
+ this.switchMapLayer(yjjbntLayer);
|
|
|
+ }
|
|
|
+ },
|
|
|
//所有地块仿百度地图绘制
|
|
|
showXgdkCenterPoint() {
|
|
|
if (this.dkMarkerLayer) {
|