diff --git a/src/views/sponeScreen/waterFlood/floodWZ.vue b/src/views/sponeScreen/waterFlood/floodWZ.vue index 65cd264..8972ae2 100644 --- a/src/views/sponeScreen/waterFlood/floodWZ.vue +++ b/src/views/sponeScreen/waterFlood/floodWZ.vue @@ -114,6 +114,7 @@ }); bus.emit('setIniteLayer', initeLayerList); newfiberMapBoxVectorLayer.removeByIds(['materialFeatures']); + newfiberMapbox.map.removeImage('materialFeatures'); } }; onMounted(() => { diff --git a/src/views/sponeScreen/waterFlood/floodWZ.vue b/src/views/sponeScreen/waterFlood/floodWZ.vue index 65cd264..8972ae2 100644 --- a/src/views/sponeScreen/waterFlood/floodWZ.vue +++ b/src/views/sponeScreen/waterFlood/floodWZ.vue @@ -114,6 +114,7 @@ }); bus.emit('setIniteLayer', initeLayerList); newfiberMapBoxVectorLayer.removeByIds(['materialFeatures']); + newfiberMapbox.map.removeImage('materialFeatures'); } }; onMounted(() => { diff --git a/src/views/sponeScreen/waterFlood/index.vue b/src/views/sponeScreen/waterFlood/index.vue index 721ba48..8e5c350 100644 --- a/src/views/sponeScreen/waterFlood/index.vue +++ b/src/views/sponeScreen/waterFlood/index.vue @@ -178,6 +178,9 @@ if (!newfiberMapbox) return; newfiberMapbox.removeLayer(newfiberMapbox.getLayerByName('waterFlow')); newfiberMapBoxVectorLayer.removeByIds(['materialFeatures']); + if (newfiberMapbox.map.hasImage('materialFeatures')) { + newfiberMapbox.map.removeImage('materialFeatures'); + } bus.emit('setIniteLayer', [ { layername: 'YSBZ', //雨水泵站