-
-
Get the description information of this terrain service.
-
-
Get or set the version of the currently used terrain data. Currently only supports tin terrain data.
-
-
Get or set a custom request header.
-
hasVertexNormals : Boolean
-
-
-
Whether there is a water mark.
-
readonlyhistoryVersions : String
-
Get all historical version information of terrain data. Currently only supports tin terrain data.
-
indexedDBSetting : Object
-
Get or set whether the indexedDB cache of the terrain is enabled (IE browser does not support it).
Example:
//Set whether to save the terrain cache to the browser's indexedDB database
viewer.terrainProvider.indexedDBSetting.isOpen = true
-
-
Get or set whether to create a skirt. The skirt is used to avoid terrain cracks. The default is true to display normally, otherwise false to close.
-
-
Get or set whether to exclude invalid terrain areas (for TIN terrain), the default is true, and the global display.
-
-
Batch request encoding method.
See:
-
-
Get whether the terrain service is ready.
-
readonlyreadyPromise : Promise.<Boolean>
-
Get the ready state promise of this terrain service.
-
requestVertexNormals : Boolean
-
Whether to request vertex normals.
-
requestWaterMask : Boolean
-
Whether to request the water surface flag.
-
-
Get or set the subdomain name. Through this interface, data can be requested from the specified subdomain.
-
-
Get the projection object (latitude-longitude or Mercator projection) of the terrain service.
-
-
Get or set whether the terrain is visible. Using this interface, you can set the visibility of terrain without refreshing the earth. Need to set invisibility to true when creating CesiumTerrainProvider.
Example:
var viewer = new SuperMap3D.Viewer('Container',{
//Create an instance of the terrain service provider, the url is the TIN terrain service published by SuperMap iServer
terrainProvider : new SuperMap3D. SuperMapTerrainProvider({
url : URL_CONFIG.SiChuan_TERRAIN,
isSct : true, //Terrain service originating from SuperMap iServer needs to set isSct to true
invisibility:true//When hiding terrain, you need to set invisibility to true
}),
});
//Add the image service published by SuperMap iServer
var layer = viewer.imageryLayers.addImageryProvider(new SuperMap3D.SuperMapImageryProvider({
url : URL_CONFIG.SiChuan_IMG
}));