diff --git a/src/views/oneMap/components/ZHHM.vue b/src/views/oneMap/components/ZHHM.vue index d9bed66..0cc64a4 100644 --- a/src/views/oneMap/components/ZHHM.vue +++ b/src/views/oneMap/components/ZHHM.vue @@ -451,6 +451,18 @@ nextTick(() => { initEcharts2(); }); + newfiberMapbox.map.easeTo({ + center: [109.488, 36.596], + zoom: 12, + pitch: 55, + }); + // 先清空 + bus.emit('clearAllLayer'); + let removedLayer = ['HMJZYSQ', 'HMXGYLD', 'HMXDLGC', 'HMXSX', 'GWPCYXF']; + removedLayer.forEach(layer => { + bus.emit('setLayerVisible', { layername: layer, isCheck: false }); + }); + bus.emit('SetLayerShow', ['雨水管网', '污水管网']); } else { ClearAllProjectMap(); nextTick(() => { @@ -614,6 +626,17 @@ clearInterval(weatherTimer.value); weatherTimer.value = null; ClearAllProjectMap(); + newfiberMapbox.map.easeTo({ + center: [109.488, 36.596], + zoom: 12, + pitch: 55, + }); + // 先清空 + bus.emit('clearAllLayer'); + let removedLayer = ['HMJZYSQ', 'HMXGYLD', 'HMXDLGC', 'HMXSX', 'GWPCYXF']; + removedLayer.forEach(layer => { + bus.emit('setLayerVisible', { layername: layer, isCheck: false }); + }); // mapBoxVectorLayer.removeByIds(['yanAnPaiShuiArea', 'yanAnPaiShuiArea__label']); });