启用世界影像地图后,为保持美观,隐藏海岸线。
This commit is contained in:
parent
bec0fd1917
commit
94401fea48
|
|
@ -148,17 +148,17 @@ export default {
|
||||||
viewer.scene._sunBloom = false
|
viewer.scene._sunBloom = false
|
||||||
viewer.scene.globe.showGroundAtmosphere = false;
|
viewer.scene.globe.showGroundAtmosphere = false;
|
||||||
|
|
||||||
let coastline = new Cesium.WebMapTileServiceImageryProvider(
|
// let coastline = new Cesium.WebMapTileServiceImageryProvider(
|
||||||
{
|
// {
|
||||||
url: 'http://124.16.219.154:8080/geoserver/gwc/service/wmts/rest/ne:GSHHS_f_L1/{TileMatrixSet}/{TileMatrixSet}:{TileMatrix}/{TileRow}/{TileCol}?format=image/png',
|
// url: 'http://124.16.219.154:8080/geoserver/gwc/service/wmts/rest/ne:GSHHS_f_L1/{TileMatrixSet}/{TileMatrixSet}:{TileMatrix}/{TileRow}/{TileCol}?format=image/png',
|
||||||
layer: 'ne:GSHHS_f_L1',
|
// layer: 'ne:GSHHS_f_L1',
|
||||||
style: 'default',
|
// style: 'default',
|
||||||
tileMatrixSetID: 'EPSG:4326',
|
// tileMatrixSetID: 'EPSG:4326',
|
||||||
format: 'image/png',
|
// format: 'image/png',
|
||||||
tilingScheme: new Cesium.GeographicTilingScheme()
|
// tilingScheme: new Cesium.GeographicTilingScheme()
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
viewer.imageryLayers.addImageryProvider(coastline);
|
// viewer.imageryLayers.addImageryProvider(coastline);
|
||||||
|
|
||||||
Cesium.Camera.DEFAULT_VIEW_RECTANGLE = Cesium.Rectangle.fromDegrees(104.479207, 14.209234, 114.479207, 22.209234);
|
Cesium.Camera.DEFAULT_VIEW_RECTANGLE = Cesium.Rectangle.fromDegrees(104.479207, 14.209234, 114.479207, 22.209234);
|
||||||
viewer.camera.flyHome();
|
viewer.camera.flyHome();
|
||||||
|
|
|
||||||
|
|
@ -604,18 +604,18 @@ export default {
|
||||||
destination: Cesium.Cartesian3.fromDegrees(112, 18, 4000000)
|
destination: Cesium.Cartesian3.fromDegrees(112, 18, 4000000)
|
||||||
})
|
})
|
||||||
|
|
||||||
// 增加海岸线
|
// // 增加海岸线
|
||||||
const coastline = new Cesium.WebMapTileServiceImageryProvider(
|
// 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',
|
// 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',
|
// layer: 'ougp:GSHHS_f_L1',
|
||||||
style: 'default',
|
// style: 'default',
|
||||||
format: 'image/png',
|
// format: 'image/png',
|
||||||
tileMatrixSetID: 'EPSG:4326',
|
// tileMatrixSetID: 'EPSG:4326',
|
||||||
tilingScheme: new Cesium.GeographicTilingScheme()
|
// tilingScheme: new Cesium.GeographicTilingScheme()
|
||||||
}
|
// }
|
||||||
)
|
// )
|
||||||
this.viewer.imageryLayers.addImageryProvider(coastline)
|
// this.viewer.imageryLayers.addImageryProvider(coastline)
|
||||||
// 沉船摄影拼接图
|
// 沉船摄影拼接图
|
||||||
const shipline = new Cesium.WebMapTileServiceImageryProvider(
|
const shipline = new Cesium.WebMapTileServiceImageryProvider(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -397,18 +397,18 @@ export default {
|
||||||
// 改写 Cesium 原生鼠标滚轮事件,地图缩放改为按下 Ctrl + 鼠标滚轮
|
// 改写 Cesium 原生鼠标滚轮事件,地图缩放改为按下 Ctrl + 鼠标滚轮
|
||||||
modifyCesiumMouseWheel(this.viewer);
|
modifyCesiumMouseWheel(this.viewer);
|
||||||
|
|
||||||
// 增加海岸线
|
// // 增加海岸线
|
||||||
const coastline = new Cesium.WebMapTileServiceImageryProvider(
|
// 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',
|
// 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',
|
// layer: 'ougp:GSHHS_f_L1',
|
||||||
style: 'default',
|
// style: 'default',
|
||||||
format: 'image/png',
|
// format: 'image/png',
|
||||||
tileMatrixSetID: 'EPSG:4326',
|
// tileMatrixSetID: 'EPSG:4326',
|
||||||
tilingScheme: new Cesium.GeographicTilingScheme()
|
// tilingScheme: new Cesium.GeographicTilingScheme()
|
||||||
}
|
// }
|
||||||
)
|
// )
|
||||||
this.viewer.imageryLayers.addImageryProvider(coastline)
|
// this.viewer.imageryLayers.addImageryProvider(coastline)
|
||||||
// 沉船摄影拼接图
|
// 沉船摄影拼接图
|
||||||
const shipline = new Cesium.WebMapTileServiceImageryProvider(
|
const shipline = new Cesium.WebMapTileServiceImageryProvider(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue