diff --git a/src/views/oneMap/components/ZHPS.vue b/src/views/oneMap/components/ZHPS.vue index 81c6230..88910b3 100644 --- a/src/views/oneMap/components/ZHPS.vue +++ b/src/views/oneMap/components/ZHPS.vue @@ -32,7 +32,7 @@ onMounted(() => { // let initePSTimer = setInterval(() => { // if (!newfiberMapbox) return; - // bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: true }); + bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: true }); // bus.emit('setLayerVisible', { layername: 'wsLine1', isCheck: true }); // clearInterval(initePSTimer); // }, 100); @@ -45,7 +45,7 @@ onBeforeUnmount(() => { bus.emit('SetLayerShow', ['蓝色地图']); newfiberMapbox.map.setBearing(0); - // bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: false }); + bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: false }); // bus.emit('setLayerVisible', { layername: 'wsLine1', isCheck: false }); });