Creates a new instance of TerrainArea
.
Object describing initialization options
Private
_creditPrivate
_isPrivate
_readyPrivate
_rectanglePrivate
_terrainPrivate
_tileGets the credit associated with this terrain area.
Checks if this terrain provider is marked as a custom provider.
Gets if this terrain area is ready.
Gets the rectangle representing this terrain area.
Gets the terrain provider for this terrain area.
Gets available tile ranges with zoom levels set with this terrain area.
Checks if the specified tile coordinates are within the bounds.
The tile X coordinate.
The tile Y coordinate.
The tile level.
true
if the tile is within bounds, false
otherwise.
Determines whether data for a tile is available to be loaded.
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.
Requests the geometry for a given tile. The result must include terrain data and may optionally include a water mask and an indication of which child tiles are available.
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.
Optional
request: RequestThe request object. Intended for internal use only.
A promise for the requested geometry. If this method returns undefined instead of a promise, it is an indication that too many requests are already pending and the request will be retried later.
Represents a geographic area with a specific terrain provider.
TerrainArea
pairs a provider with geographic bounds and level constraints.