diff --git a/src/assets/newImgs/selectedLocation.png b/src/assets/newImgs/selectedLocation.png new file mode 100644 index 0000000..250732f --- /dev/null +++ b/src/assets/newImgs/selectedLocation.png Binary files differ diff --git a/src/assets/newImgs/selectedLocation.png b/src/assets/newImgs/selectedLocation.png new file mode 100644 index 0000000..250732f --- /dev/null +++ b/src/assets/newImgs/selectedLocation.png Binary files differ diff --git a/src/views/oneMap/components/ZHPS.vue b/src/views/oneMap/components/ZHPS.vue index 88910b3..38535d9 100644 --- a/src/views/oneMap/components/ZHPS.vue +++ b/src/views/oneMap/components/ZHPS.vue @@ -32,7 +32,8 @@ onMounted(() => { // let initePSTimer = setInterval(() => { // if (!newfiberMapbox) return; - bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: true }); + bus.emit('setLayerVisible', { layername: 'pipeline_info_flow_ys', isCheck: true }); + // bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: true }); // bus.emit('setLayerVisible', { layername: 'wsLine1', isCheck: true }); // clearInterval(initePSTimer); // }, 100); @@ -45,7 +46,8 @@ onBeforeUnmount(() => { bus.emit('SetLayerShow', ['蓝色地图']); newfiberMapbox.map.setBearing(0); - bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: false }); + bus.emit('setLayerVisible', { layername: 'pipeline_info_flow_ys', isCheck: false }); + //bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: false }); // bus.emit('setLayerVisible', { layername: 'wsLine1', isCheck: false }); }); diff --git a/src/assets/newImgs/selectedLocation.png b/src/assets/newImgs/selectedLocation.png new file mode 100644 index 0000000..250732f --- /dev/null +++ b/src/assets/newImgs/selectedLocation.png Binary files differ diff --git a/src/views/oneMap/components/ZHPS.vue b/src/views/oneMap/components/ZHPS.vue index 88910b3..38535d9 100644 --- a/src/views/oneMap/components/ZHPS.vue +++ b/src/views/oneMap/components/ZHPS.vue @@ -32,7 +32,8 @@ onMounted(() => { // let initePSTimer = setInterval(() => { // if (!newfiberMapbox) return; - bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: true }); + bus.emit('setLayerVisible', { layername: 'pipeline_info_flow_ys', isCheck: true }); + // bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: true }); // bus.emit('setLayerVisible', { layername: 'wsLine1', isCheck: true }); // clearInterval(initePSTimer); // }, 100); @@ -45,7 +46,8 @@ onBeforeUnmount(() => { bus.emit('SetLayerShow', ['蓝色地图']); newfiberMapbox.map.setBearing(0); - bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: false }); + bus.emit('setLayerVisible', { layername: 'pipeline_info_flow_ys', isCheck: false }); + //bus.emit('setLayerVisible', { layername: 'ysLine1', isCheck: false }); // bus.emit('setLayerVisible', { layername: 'wsLine1', isCheck: false }); }); diff --git a/src/views/oneMap/index.vue b/src/views/oneMap/index.vue index 96e3f27..d46b388 100644 --- a/src/views/oneMap/index.vue +++ b/src/views/oneMap/index.vue @@ -219,7 +219,7 @@ // 左右滑动 import ZuoYou1 from '@/assets/images/Sponge_screen/ZuoYou1.png'; import ZuoYou2 from '@/assets/images/Sponge_screen/ZuoYou2.png'; -import xtb_img from '@/assets/newImgs/xtb_img.png'; +import xtb_img from '@/assets/newImgs/selectedLocation.png'; import mapBoxVectorLayer from '@/utils/GISdocument/mapboxVectorLayer.js'; // 时间以及天气 const timer = ref(null); @@ -349,7 +349,7 @@ iocn: ZHPS, AC_icon: AC_ZHPS, id: 3, - Layers: ['雨水管网', '污水管网'], + Layers: [], children: [ { name: '排水安全', @@ -568,7 +568,7 @@ } gcoord.transform(clickPoint, gcoord.GCJ02, gcoord.WGS84); mapBoxVectorLayer.removeByIds(['clickPoint']); - mapBoxVectorLayer.addGeojsonSymbol('clickPoint', turf.featureCollection([clickPoint]), xtb_img, 2); + mapBoxVectorLayer.addGeojsonSymbol('clickPoint', turf.featureCollection([clickPoint]), xtb_img, 0.8); data.roadName = positionAddress; bus.emit('popupcontent', { popupShow: true,