优化地图显示功能
This commit is contained in:
parent
8bc6192761
commit
092b6c11db
|
|
@ -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()
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue