diff --git a/src/views/sponeScreen/cityGK/index.vue b/src/views/sponeScreen/cityGK/index.vue index 0d39d99..9b106ad 100644 --- a/src/views/sponeScreen/cityGK/index.vue +++ b/src/views/sponeScreen/cityGK/index.vue @@ -88,6 +88,9 @@ show: true, }, ]); + let dileiLayer = newfiberMap.getMap().imageryLayers._layers.filter(layer => layer.imageryProvider.layers == 'demo:hn_kf_hm_dilei'); + if (!dileiLayer.length) return; + dileiLayer[0].show = false; }); diff --git a/src/views/sponeScreen/cityGK/index.vue b/src/views/sponeScreen/cityGK/index.vue index 0d39d99..9b106ad 100644 --- a/src/views/sponeScreen/cityGK/index.vue +++ b/src/views/sponeScreen/cityGK/index.vue @@ -88,6 +88,9 @@ show: true, }, ]); + let dileiLayer = newfiberMap.getMap().imageryLayers._layers.filter(layer => layer.imageryProvider.layers == 'demo:hn_kf_hm_dilei'); + if (!dileiLayer.length) return; + dileiLayer[0].show = false; }); diff --git a/src/views/sponeScreen/projectHM/ProjectDisplay.vue b/src/views/sponeScreen/projectHM/ProjectDisplay.vue index cdcc6d2..2fc2cb2 100644 --- a/src/views/sponeScreen/projectHM/ProjectDisplay.vue +++ b/src/views/sponeScreen/projectHM/ProjectDisplay.vue @@ -68,6 +68,7 @@ console.log('ppppp---', p); let { data, code } = await projectInfoNew(p); if (code == 200) { + newfiberMap.removeByIds(['projectBoundaryLayers', 'haimianFacility']); listDataXm.value = data; console.log(typeof p); if (!p || !p.projectTypeId) {