From fbaae411ff3ea1adb97177a29e20fa70aed90e5d Mon Sep 17 00:00:00 2001 From: hym Date: Mon, 8 Sep 2025 23:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A06000=E7=B1=B3=E7=AD=89?= =?UTF-8?q?=E6=B7=B1=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataSearch.vue | 12 ++++++++++++ src/views/home.vue | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/views/dataSearch.vue b/src/views/dataSearch.vue index b64d881..74d1262 100644 --- a/src/views/dataSearch.vue +++ b/src/views/dataSearch.vue @@ -628,6 +628,18 @@ export default { } ) this.viewer.imageryLayers.addImageryProvider(shipline) + // 增加6000米等深线 + const contour6000 = new Cesium.WebMapTileServiceImageryProvider( + { + url: this.CesiumHostAddr + 'geoserver/gwc/service/wmts/rest/ougp:contour6000/{TileMatrixSet}/{TileMatrixSet}:{TileMatrix}/{TileRow}/{TileCol}?format=image/png', + layer: 'ougp:contour6000', + style: 'default', + format: 'image/png', + tileMatrixSetID: 'EPSG:4326', + tilingScheme: new Cesium.GeographicTilingScheme() + } + ) + this.viewer.imageryLayers.addImageryProvider(contour6000) }, turnDeatilPage(item) { this.$router.push({ diff --git a/src/views/home.vue b/src/views/home.vue index cb4d98e..59d8215 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -421,6 +421,18 @@ export default { } ) this.viewer.imageryLayers.addImageryProvider(shipline) + // 增加6000米等深线 + const contour6000 = new Cesium.WebMapTileServiceImageryProvider( + { + url: this.CesiumHostAddr + 'geoserver/gwc/service/wmts/rest/ougp:contour6000/{TileMatrixSet}/{TileMatrixSet}:{TileMatrix}/{TileRow}/{TileCol}?format=image/png', + layer: 'ougp:contour6000', + style: 'default', + format: 'image/png', + tileMatrixSetID: 'EPSG:4326', + tilingScheme: new Cesium.GeographicTilingScheme() + } + ) + this.viewer.imageryLayers.addImageryProvider(contour6000) }, // 清除所有轨迹图层 clearAll() {