Private
constructorPrivate
Creates a new HybridTerrainProvider
. Use the HybridTerrainProvider.create
instead of the constructor for async initialization.
The initialized default terrain provider
The initialized fallback terrain provider
The array of initialized terrain areas
Private
Optional
_availabilityPrivate
_fallbackPrivate
_readyPrivate
_terrainPrivate
_terrainPrivate
_tilingGets an object that can be used to determine availability of terrain from this provider.
Gets the credit to display when this terrain provider is active. Typically this is used to credit the source of the terrain.
Gets the default terrain provider.
Gets an event that is raised when the terrain provider encounters an asynchronous error. By subscribing
to the event, you will be notified of the error and can potentially recover from it. Event listeners
are passed an instance of TileProviderError
.
Gets the fallback terrain provider.
Gets a value indicating whether or not the requested tiles include vertex normals.
Gets a value indicating whether or not the provider includes a water mask. The water mask indicates which areas of the globe are water rather than land, so they can be rendered as a reflective surface with animated waves.
Gets a value indicating whether or not the provider is ready for use, or a promise that resolves when the provider becomes ready.
Gets the list of terrain areas managed by this provider.
Gets the tiling scheme used by this provider.
Gets the maximum geometric error allowed in a tile at a given level.
The tile level for which to get the maximum geometric error.
The maximum geometric error.
Determines whether data for a tile is available to be loaded. Checks the specified terrain areas first.
The X coordinate of the tile for which to request geometry.
The Y coordinate of the tile for which to request geometry.
The level of the tile for which to request geometry.
Undefined if not supported by the terrain provider, otherwise true or false.
Makes sure we load availability data for a tile
The X coordinate of the tile for which to request geometry.
The Y coordinate of the tile for which to request geometry.
The level of the tile for which to request geometry.
Undefined if nothing need to be loaded or a Promise that resolves when all required tiles are loaded
Requests the terrain for a given tile coordinate.
The X coordinate of the tile.
The Y coordinate of the tile.
The zoom level of the tile.
Optional
request: RequestThe request.
A promise for the requested terrain.
Static
createAsynchronously creates a new HybridTerrainProvider
.
A promise that resolves to a new HybridTerrainProvider
instance.
Provides terrain by delegating requests to different terrain providers based on geographic regions and zoom levels. This allows combining multiple terrain sources into a single seamless terrain.
Example