From 092b6c11db0612b1d8849e7b891e092e1792fb3d Mon Sep 17 00:00:00 2001 From: hym Date: Fri, 27 Sep 2024 17:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9C=B0=E5=9B=BE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataSearch.vue | 21 ++++++++++++--------- src/views/home.vue | 12 +++--------- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/views/dataSearch.vue b/src/views/dataSearch.vue index 6953eec..6f36989 100644 --- a/src/views/dataSearch.vue +++ b/src/views/dataSearch.vue @@ -504,14 +504,17 @@ export default { this.viewer.scene.globe.showGroundAtmosphere = false this.viewer.scene.postProcessStages.fxaa.enabled = true + // 不显示底图 + this.viewer.imageryLayers.get(0).show = false + // 叠加叠加影像服务 const earthMap = new Cesium.WebMapTileServiceImageryProvider( { - url: this.CesiumHostAddr + 'geoserver/gwc/service/wmts/rest/ougp:world/EPSG:4326/EPSG:4326:{z}/{y}/{x}?format=image/png', - layer: 'ne:gmrt_20231018', + url: this.CesiumHostAddr + 'geoserver/gwc/service/wmts/rest/ougp:world/{TileMatrixSet}/{TileMatrixSet}:{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg', + layer: 'ougp:world', style: 'default', - tileMatrixSetID: 'EPSG:4326', format: 'image/jpeg', + tileMatrixSetID: 'EPSG:4326', tilingScheme: new Cesium.GeographicTilingScheme() } ) @@ -519,11 +522,11 @@ export default { // 增加海岸线 /geoserver/gwc/service/wmts/rest/ne:GSHHS_f_L1/EPSG:4326/EPSG:4326:{z}/{y}/{x}?format=image/png const coastline = new Cesium.WebMapTileServiceImageryProvider( { - url: this.CesiumHostAddr + 'geoserver/gwc/service/wmts/rest/ougp:GSHHS_f_L1/EPSG:4326/EPSG:4326:{z}/{y}/{x}?format=image/png', - layer: 'ne:GSHHS_f_L1', + url: this.CesiumHostAddr + 'geoserver/gwc/service/wmts/rest/ougp:GSHHS_f_L1/{TileMatrixSet}/{TileMatrixSet}:{TileMatrix}/{TileRow}/{TileCol}?format=image/png', + layer: 'ougp:GSHHS_f_L1', style: 'default', - tileMatrixSetID: 'EPSG:4326', format: 'image/png', + tileMatrixSetID: 'EPSG:4326', tilingScheme: new Cesium.GeographicTilingScheme() } ) @@ -531,11 +534,11 @@ export default { // 沉船摄影拼接图 /geoserver/gwc/service/wmts/rest/ne:No1ShipWreck_UP/EPSG:4326/EPSG:4326:{z}/{y}/{x}?format=image/png const shipline = new Cesium.WebMapTileServiceImageryProvider( { - url: this.CesiumHostAddr + 'geoserver/gwc/service/wmts/rest/ougp:正射影像图_GM输出_20240516/EPSG:4326/EPSG:4326:{z}/{y}/{x}?format=image/png', - layer: 'ne:No1ShipWreck_UP', + url: this.CesiumHostAddr + 'geoserver/gwc/service/wmts/rest/ougp:正射影像图_GM输出_20240516/{TileMatrixSet}/{TileMatrixSet}:{TileMatrix}/{TileRow}/{TileCol}?format=image/png', + layer: 'ougp:正射影像图_GM输出_20240516', style: 'default', - tileMatrixSetID: 'EPSG:4326', format: 'image/png', + tileMatrixSetID: 'EPSG:4326', tilingScheme: new Cesium.GeographicTilingScheme() } ) diff --git a/src/views/home.vue b/src/views/home.vue index 2a98c52..132b7be 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -382,10 +382,8 @@ export default { layer: 'ougp:world', style: 'default', format: 'image/jpeg', - // tileMatrixSetID: 'EPSG:4326', - // tilingScheme: new Cesium.GeographicTilingScheme() - tileMatrixSetID: 'EPSG:900913', - tilingScheme: new Cesium.WebMercatorTilingScheme() + tileMatrixSetID: 'EPSG:4326', + tilingScheme: new Cesium.GeographicTilingScheme() } ) this.viewer.imageryLayers.addImageryProvider(earthMap) @@ -393,13 +391,11 @@ export default { const coastline = new Cesium.WebMapTileServiceImageryProvider( { url: this.CesiumHostAddr + 'geoserver/gwc/service/wmts/rest/ougp:GSHHS_f_L1/{TileMatrixSet}/{TileMatrixSet}:{TileMatrix}/{TileRow}/{TileCol}?format=image/png', - layer: 'ne:GSHHS_f_L1', + layer: 'ougp:GSHHS_f_L1', style: 'default', format: 'image/png', tileMatrixSetID: 'EPSG:4326', tilingScheme: new Cesium.GeographicTilingScheme() - // tileMatrixSetID: 'EPSG:900913', - // tilingScheme: new Cesium.WebMercatorTilingScheme() } ) this.viewer.imageryLayers.addImageryProvider(coastline) @@ -412,8 +408,6 @@ export default { format: 'image/png', tileMatrixSetID: 'EPSG:4326', tilingScheme: new Cesium.GeographicTilingScheme() - // tileMatrixSetID: 'EPSG:900913', - // tilingScheme: new Cesium.WebMercatorTilingScheme() } ) this.viewer.imageryLayers.addImageryProvider(shipline)