new Cesium.GeoSkylineTerrainProvider(options)
Skyline地形
Name |
Type |
Description |
options |
Object
|
optional
参数选项:
Name |
Type |
Default |
Description |
url |
String
|
|
optional
地形url部分,'{s}/SG/Elevation' |
layerName |
String
|
|
optional
地形名称,'SGElevation.mpt' |
subdomains |
Array
|
|
optional
地形服务多域名,[ "https://www.skylineglobe.com", "https://www1.skylineglobe.com", "https://www2.skylineglobe.com", "https://www3.skylineglobe.com", "https://www4.skylineglobe.com" ] |
requestVertexNormals |
Boolean
|
true
|
optional
是否额外请求光照法线数据,默认true |
pngOnly |
Boolean
|
false
|
optional
是否只是图片,默认false |
|
- Author:
-
Example:
//示例:
var terrainProvider = new Cesium.GeoSkylineTerrainProvider({
url: '{s}/SG/Elevation',
layerName: 'SGElevation.mpt',
subdomains: [
"https://www.skylineglobe.com",
"https://www1.skylineglobe.com",
"https://www2.skylineglobe.com",
"https://www3.skylineglobe.com",
"https://www4.skylineglobe.com"
],
requestVertexNormals: true,
pngOnly: false
});
viewer.terrainProvider = terrainProvider;
Demo: