diff --git a/public/static/libs/mapbox/style/floodOneMap.json b/public/static/libs/mapbox/style/floodOneMap.json index b9bcac6..cb490a9 100644 --- a/public/static/libs/mapbox/style/floodOneMap.json +++ b/public/static/libs/mapbox/style/floodOneMap.json @@ -3,6 +3,7 @@ "basemap": "https://supermap2.wh-nf.cn:8090/bm", "mvt": "https://supermap0.wh-nf.cn:8090/vt", "sprites": [ + "/static/libs/mapbox/style/sprite/sprite3", "/static/libs/mapbox/style/sprite/sprite4", "/static/libs/mapbox/style/sprite/sprite5", "/static/libs/mapbox/style/sprite/sprite6", @@ -861,7 +862,44 @@ "orinigns", "orinigns" ], - "icon-size": 0.65, + "icon-size": [ + "match", + [ + "get", + "objname" + ], + "上水井盖", + 0.65, + "污水井盖", + 0.65, + "雨水井盖", + 0.65, + "雨水箅子", + 0.65, + "电力井盖", + 0.65, + "路灯井盖", + 0.65, + "通信井盖", + 0.65, + "热力井盖", + 0.65, + "燃气井盖", + 0.65, + "消防设施", + 2, + "电缆井盖", + 0.55, + "中水井盖", + 0.65, + "燃气调压站(箱)", + 2, + "露天燃气管道", + 2, + "车辆加油(气、电)站", + 2, + 0.65 + ], "text-allow-overlap": false, "icon-allow-overlap": false }, diff --git a/public/static/libs/mapbox/style/floodOneMap.json b/public/static/libs/mapbox/style/floodOneMap.json index b9bcac6..cb490a9 100644 --- a/public/static/libs/mapbox/style/floodOneMap.json +++ b/public/static/libs/mapbox/style/floodOneMap.json @@ -3,6 +3,7 @@ "basemap": "https://supermap2.wh-nf.cn:8090/bm", "mvt": "https://supermap0.wh-nf.cn:8090/vt", "sprites": [ + "/static/libs/mapbox/style/sprite/sprite3", "/static/libs/mapbox/style/sprite/sprite4", "/static/libs/mapbox/style/sprite/sprite5", "/static/libs/mapbox/style/sprite/sprite6", @@ -861,7 +862,44 @@ "orinigns", "orinigns" ], - "icon-size": 0.65, + "icon-size": [ + "match", + [ + "get", + "objname" + ], + "上水井盖", + 0.65, + "污水井盖", + 0.65, + "雨水井盖", + 0.65, + "雨水箅子", + 0.65, + "电力井盖", + 0.65, + "路灯井盖", + 0.65, + "通信井盖", + 0.65, + "热力井盖", + 0.65, + "燃气井盖", + 0.65, + "消防设施", + 2, + "电缆井盖", + 0.55, + "中水井盖", + 0.65, + "燃气调压站(箱)", + 2, + "露天燃气管道", + 2, + "车辆加油(气、电)站", + 2, + 0.65 + ], "text-allow-overlap": false, "icon-allow-overlap": false }, diff --git a/src/views/oneMap/LayerControl/LayerControl.vue b/src/views/oneMap/LayerControl/LayerControl.vue index 1220b6b..1c4e39e 100644 --- a/src/views/oneMap/LayerControl/LayerControl.vue +++ b/src/views/oneMap/LayerControl/LayerControl.vue @@ -1548,7 +1548,9 @@ }); newfiberMapbox.addLayer(layer); } else { - newfiberMapbox.removeLayer(newfiberMapbox.getLayerByName('dynamicRoad')); + if (newfiberMapbox.getLayerByName('dynamicRoad')) { + newfiberMapbox.removeLayer(newfiberMapbox.getLayerByName('dynamicRoad')); + } } } //水系