diff --git a/public/static/libs/mapbox/style/wh_dhgx.json b/public/static/libs/mapbox/style/wh_dhgx.json index 8118bec..3b09758 100644 --- a/public/static/libs/mapbox/style/wh_dhgx.json +++ b/public/static/libs/mapbox/style/wh_dhgx.json @@ -937,7 +937,15 @@ ], "paint": { "fill-color": ["get", "color"], - "fill-opacity": 0.3 + "fill-opacity": [ + "match", + ["get", "level"], + "1",0.5, + "2",0.15, + "3",0.10, + "4",0.05, + 0.5 + ] }, "minzoom": 7, "maxzoom": 24, diff --git a/public/static/libs/mapbox/style/wh_dhgx.json b/public/static/libs/mapbox/style/wh_dhgx.json index 8118bec..3b09758 100644 --- a/public/static/libs/mapbox/style/wh_dhgx.json +++ b/public/static/libs/mapbox/style/wh_dhgx.json @@ -937,7 +937,15 @@ ], "paint": { "fill-color": ["get", "color"], - "fill-opacity": 0.3 + "fill-opacity": [ + "match", + ["get", "level"], + "1",0.5, + "2",0.15, + "3",0.10, + "4",0.05, + 0.5 + ] }, "minzoom": 7, "maxzoom": 24, diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 809a38c..8a4aef5 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -132,13 +132,14 @@ proxy.$emit("map-click1", lngLat, properties, layerId); const { town, hupo, gangqu, hb_wh_dhgx_merge,psfq,point } = default_params; const { setLayerVisible, setHighlight, setGeoJSON, removeMapDatas } = events_params; - const _keys = ["rain_water_pump_station_info", "sewage_pump_station_info",'rainwater_pipeline_quality_area1',point.children.outlet_info2.key]; + const _keys = ["rain_water_pump_station_info", "sewage_pump_station_info",'rainwater_pipeline_quality_area1']; (() => { setHighlight_(properties); ysFlow(); newfiberMap.getLayers().filter((i) => i.newfiberId == "村域边界")[0].setData(turf.featureCollection([])); busEmit(removeMapDatas.key, _keys.map((k) => k + 1)); + if (town.prevId) { busEmit(setLayerVisible.key, { layername: town.key, isCheck: true }); busEmit(setLayerVisible.key, { layername: town.prevId, isCheck: false }); @@ -146,9 +147,7 @@ } if (psfq.prevIds.length && !([psfq.key,point.key].includes(layerId))) { - debugger; districtMask(); - console.log('psfq.prevIds',psfq.prevIds); const isOne = psfq.prevIds.length == 1?1:2 let properties = psfq.prevIds[psfq.prevIds.length -1]; areaToMap(properties); diff --git a/public/static/libs/mapbox/style/wh_dhgx.json b/public/static/libs/mapbox/style/wh_dhgx.json index 8118bec..3b09758 100644 --- a/public/static/libs/mapbox/style/wh_dhgx.json +++ b/public/static/libs/mapbox/style/wh_dhgx.json @@ -937,7 +937,15 @@ ], "paint": { "fill-color": ["get", "color"], - "fill-opacity": 0.3 + "fill-opacity": [ + "match", + ["get", "level"], + "1",0.5, + "2",0.15, + "3",0.10, + "4",0.05, + 0.5 + ] }, "minzoom": 7, "maxzoom": 24, diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index 809a38c..8a4aef5 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -132,13 +132,14 @@ proxy.$emit("map-click1", lngLat, properties, layerId); const { town, hupo, gangqu, hb_wh_dhgx_merge,psfq,point } = default_params; const { setLayerVisible, setHighlight, setGeoJSON, removeMapDatas } = events_params; - const _keys = ["rain_water_pump_station_info", "sewage_pump_station_info",'rainwater_pipeline_quality_area1',point.children.outlet_info2.key]; + const _keys = ["rain_water_pump_station_info", "sewage_pump_station_info",'rainwater_pipeline_quality_area1']; (() => { setHighlight_(properties); ysFlow(); newfiberMap.getLayers().filter((i) => i.newfiberId == "村域边界")[0].setData(turf.featureCollection([])); busEmit(removeMapDatas.key, _keys.map((k) => k + 1)); + if (town.prevId) { busEmit(setLayerVisible.key, { layername: town.key, isCheck: true }); busEmit(setLayerVisible.key, { layername: town.prevId, isCheck: false }); @@ -146,9 +147,7 @@ } if (psfq.prevIds.length && !([psfq.key,point.key].includes(layerId))) { - debugger; districtMask(); - console.log('psfq.prevIds',psfq.prevIds); const isOne = psfq.prevIds.length == 1?1:2 let properties = psfq.prevIds[psfq.prevIds.length -1]; areaToMap(properties); diff --git a/src/views/pictureOnMap/page/DrainageSystem/index.vue b/src/views/pictureOnMap/page/DrainageSystem/index.vue index a6c024c..ae7b860 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/index.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/index.vue @@ -19,6 +19,7 @@