diff --git a/src/views/sponeScreen/cityGK/PhysicalGeography.vue b/src/views/sponeScreen/cityGK/PhysicalGeography.vue index 6d28612..dd91261 100644 --- a/src/views/sponeScreen/cityGK/PhysicalGeography.vue +++ b/src/views/sponeScreen/cityGK/PhysicalGeography.vue @@ -168,7 +168,7 @@ bus.emit('setIniteLayer', [ { layername: 'buildingModel', - show: false, + show: true, }, { layername: 'topography', @@ -186,8 +186,17 @@ newfiberVectorLayer.addGeojsonPolygon(newfiberMap, oneCenter1, 'oneCenter'); newfiberVectorLayer.addGeojsonPolygon(newfiberMap, oneCenter2, 'oneCenter'); newfiberVectorLayer.addGeojsonPolygon(newfiberMap, oneCenter, 'oneCenter'); + newfiberMap.setCenter({ + lng: 114.312, + lat: 34.262, + heading: 2.281299097855777, + zoom: 42358.12942752382, + pitch: -35.2508969308367, + roll: 0.005453465256790101, + }); }; const setLayerVisible = () => { + newfiberMap.removeByIds(['oneCenter']); if (!newfiberMap.xdmWms) { newfiberMap.xdmWms = newfiberMap.loadWmsLayer({ url: '/geoserver/demo/wms', diff --git a/src/views/sponeScreen/cityGK/PhysicalGeography.vue b/src/views/sponeScreen/cityGK/PhysicalGeography.vue index 6d28612..dd91261 100644 --- a/src/views/sponeScreen/cityGK/PhysicalGeography.vue +++ b/src/views/sponeScreen/cityGK/PhysicalGeography.vue @@ -168,7 +168,7 @@ bus.emit('setIniteLayer', [ { layername: 'buildingModel', - show: false, + show: true, }, { layername: 'topography', @@ -186,8 +186,17 @@ newfiberVectorLayer.addGeojsonPolygon(newfiberMap, oneCenter1, 'oneCenter'); newfiberVectorLayer.addGeojsonPolygon(newfiberMap, oneCenter2, 'oneCenter'); newfiberVectorLayer.addGeojsonPolygon(newfiberMap, oneCenter, 'oneCenter'); + newfiberMap.setCenter({ + lng: 114.312, + lat: 34.262, + heading: 2.281299097855777, + zoom: 42358.12942752382, + pitch: -35.2508969308367, + roll: 0.005453465256790101, + }); }; const setLayerVisible = () => { + newfiberMap.removeByIds(['oneCenter']); if (!newfiberMap.xdmWms) { newfiberMap.xdmWms = newfiberMap.loadWmsLayer({ url: '/geoserver/demo/wms', diff --git a/src/views/sponeScreen/gisMF/cesiumMap.vue b/src/views/sponeScreen/gisMF/cesiumMap.vue index a04f015..fd6397c 100644 --- a/src/views/sponeScreen/gisMF/cesiumMap.vue +++ b/src/views/sponeScreen/gisMF/cesiumMap.vue @@ -43,7 +43,8 @@ feature.key == 'WSBZ' || feature.key == 'combineBengZhan' || feature.key == 'sewageFactory' || - feature.key == 'waterLoging' + feature.key == 'waterLoging' || + feature.key == 'rainStation' ) { let properties = feature.properties.getValue(); console.log('properties--', properties); diff --git a/src/views/sponeScreen/cityGK/PhysicalGeography.vue b/src/views/sponeScreen/cityGK/PhysicalGeography.vue index 6d28612..dd91261 100644 --- a/src/views/sponeScreen/cityGK/PhysicalGeography.vue +++ b/src/views/sponeScreen/cityGK/PhysicalGeography.vue @@ -168,7 +168,7 @@ bus.emit('setIniteLayer', [ { layername: 'buildingModel', - show: false, + show: true, }, { layername: 'topography', @@ -186,8 +186,17 @@ newfiberVectorLayer.addGeojsonPolygon(newfiberMap, oneCenter1, 'oneCenter'); newfiberVectorLayer.addGeojsonPolygon(newfiberMap, oneCenter2, 'oneCenter'); newfiberVectorLayer.addGeojsonPolygon(newfiberMap, oneCenter, 'oneCenter'); + newfiberMap.setCenter({ + lng: 114.312, + lat: 34.262, + heading: 2.281299097855777, + zoom: 42358.12942752382, + pitch: -35.2508969308367, + roll: 0.005453465256790101, + }); }; const setLayerVisible = () => { + newfiberMap.removeByIds(['oneCenter']); if (!newfiberMap.xdmWms) { newfiberMap.xdmWms = newfiberMap.loadWmsLayer({ url: '/geoserver/demo/wms', diff --git a/src/views/sponeScreen/gisMF/cesiumMap.vue b/src/views/sponeScreen/gisMF/cesiumMap.vue index a04f015..fd6397c 100644 --- a/src/views/sponeScreen/gisMF/cesiumMap.vue +++ b/src/views/sponeScreen/gisMF/cesiumMap.vue @@ -43,7 +43,8 @@ feature.key == 'WSBZ' || feature.key == 'combineBengZhan' || feature.key == 'sewageFactory' || - feature.key == 'waterLoging' + feature.key == 'waterLoging' || + feature.key == 'rainStation' ) { let properties = feature.properties.getValue(); console.log('properties--', properties); diff --git a/src/views/sponeScreen/gisMF/cesiumPopup.vue b/src/views/sponeScreen/gisMF/cesiumPopup.vue index 4057645..7238bd5 100644 --- a/src/views/sponeScreen/gisMF/cesiumPopup.vue +++ b/src/views/sponeScreen/gisMF/cesiumPopup.vue @@ -6,6 +6,7 @@
{{ item3.name }}
+