TerrainSettings Class

Normalized version of TerrainProps for which provider has been validated and default values of all members are used.

Methods

Name Description
constructor(providerName: "CesiumWorldTerrain" = "CesiumWorldTerrain", exaggeration: number = 1.0, applyLighting: boolean = false, heightOrigin: number = 0.0, heightOriginMode: TerrainHeightOriginMode = TerrainHeightOriginMode.Geodetic, locatable: boolean = true): TerrainSettings    
clone(changedProps?: TerrainProps): TerrainSettings Create a copy of this TerrainSettings, optionally modifying some of its properties.  
equals(other: TerrainSettings): boolean    
equalsJSON(json?: BackgroundMapProps): boolean Returns true if these settings are equivalent to the supplied JSON settings.  
toJSON(): TerrainProps    
fromJSON(json?: TerrainProps): TerrainSettings Static    

Properties

Name Type Description
applyLighting Readonly boolean Applying lighting can help to visualize subtle terrain variations.  
exaggeration Readonly number A value greater than one will cause terrain height to be exaggerated/scaled.  
heightOrigin Readonly number Origin value - height of the IModel origin at the project center as defined by heightOriginMode.  
heightOriginMode Readonly TerrainHeightOriginMode Determines how/if the heightOrigin is applied to the terrain height.  
locatable Readonly boolean   Deprecated  
providerName Readonly "CesiumWorldTerrain" Identifies the provider currently only CesiumWorldTerrain supported.  

Defined in

Last Updated: 11 June, 2024