Cesium Utils - v0.0.9
    Preparing search index...

    Class TerrainArea

    Represents a geographic area with a specific terrain provider. TerrainArea pairs a provider with geographic bounds and level constraints.

    Index

    Constructors

    Properties

    _credit: string | Credit
    _isCustom: boolean
    _ready: boolean = false
    _rectangle: Rectangle
    _terrainProvider: TerrainProvider
    _tileRanges: Map<number, TileRange>

    Accessors

    Methods

    • Checks if the specified tile coordinates are within the bounds.

      Parameters

      • x: number

        The tile X coordinate.

      • y: number

        The tile Y coordinate.

      • level: number

        The tile level.

      Returns boolean

      true if the tile is within bounds, false otherwise.

    • Determines whether data for a tile is available to be loaded.

      Parameters

      • x: number

        The X coordinate of the tile for which to request geometry.

      • y: number

        The Y coordinate of the tile for which to request geometry.

      • level: number

        The level of the tile for which to request geometry.

      Returns boolean

      Undefined if not supported by the terrain provider, otherwise true or false.

      TerrainProvider.getTileDataAvailable

    • 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.

      Parameters

      • x: number

        The X coordinate of the tile for which to request geometry.

      • y: number

        The Y coordinate of the tile for which to request geometry.

      • level: number

        The level of the tile for which to request geometry.

      • Optionalrequest: Request

        The request object. Intended for internal use only.

      Returns undefined | Promise<TerrainData>

      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.