TileAvailability

external class TileAvailability(tilingScheme: TilingScheme, maximumLevel: Int)(source)

Reports the availability of tiles in a TilingScheme.

Parameters

tilingScheme

The tiling scheme in which to report availability.

maximumLevel

The maximum tile level that is potentially available.

See also

Constructors

Link copied to clipboard
constructor(tilingScheme: TilingScheme, maximumLevel: Int)

Functions

Link copied to clipboard
fun addAvailableTileRange(level: Int, startX: Double, startY: Double, endX: Double, endY: Double)

Marks a rectangular range of tiles in a particular level as being available. For best performance, add your ranges in order of increasing level.

Link copied to clipboard

Finds the most detailed level that is available everywhere within a given rectangle. More detailed tiles may be available in parts of the rectangle, but not the whole thing. The return value of this function may be safely passed to sampleTerrain for any position within the rectangle. This function usually completes in time logarithmic to the number of rectangles added with TileAvailability.addAvailableTileRange.

Link copied to clipboard

Computes a bit mask indicating which of a tile's four children exist. If a child's bit is set, a tile is available for that child. If it is cleared, the tile is not available.

Link copied to clipboard

Determines the level of the most detailed tile covering the position. This function usually completes in time logarithmic to the number of rectangles added with TileAvailability.addAvailableTileRange.

Link copied to clipboard
fun isTileAvailable(level: Int, x: Double, y: Double): Boolean

Determines if a particular tile is available.