Class VisibleTileSet

Manages visible Tiles for MapView.

Responsible for election of rendered tiles:

  • quad-tree traversal
  • frustum culling
  • sorting tiles by relevance (visible area) to prioritize load
  • limiting number of visible tiles
  • caching tiles
  • searching cache to replace visible but yet empty tiles with already loaded siblings in nearby zoom levels

Hierarchy

  • VisibleTileSet

Constructors

Properties

allVisibleTilesLoaded: boolean = false
dataSourceTileList: DataSourceTileList[] = []

Accessors

Methods

  • Process callback function [[fun]] with each tile in the cache.

    Optional [[dataSource]] parameter limits processing to the tiles that belongs to DataSource passed in.

    Parameters

    • fun: ((tile) => void)

      The callback function to be called.

        • (tile): void
        • Parameters

          Returns void

    • Optional dataSource: DataSource

      The optional DataSource reference for tiles selection.

    Returns void

  • Process callback function [[fun]] with each visible tile in set.

    Parameters

    • fun: ((tile) => void)

      The callback function to be called.

        • (tile): void
        • Parameters

          Returns void

    Returns void

  • Gets the tile corresponding to the given data source, key and offset from the cache.

    Parameters

    • dataSource: DataSource

      The data source the tile belongs to.

    • tileKey: TileKey

      The key identifying the tile.

    • offset: number

      Tile offset.

    • frameNumber: number

      Frame in which the tile was requested

    Returns undefined | Tile

    The tile if found in cache, undefined otherwise.

  • Gets the tile corresponding to the given data source, key and offset from the rendered tiles.

    Parameters

    • dataSource: DataSource

      The data source the tile belongs to.

    • tileKey: TileKey

      The key identifying the tile.

    • offset: number = 0

      Tile offset.

    Returns undefined | Tile

    The tile if found among the rendered tiles, undefined otherwise.

  • Gets the tile corresponding to the given data source and location from the rendered tiles.

    Parameters

    • dataSource: DataSource

      The data source the tile belongs to.

    • geoPoint: GeoCoordinates

      The geolocation included within the tile.

    • offset: number = 0

    Returns undefined | Tile

    The tile if found among the rendered tiles, undefined otherwise.

  • Gets the tile corresponding to the given data source, key and offset, creating it if necessary.

    Parameters

    • dataSource: DataSource

      The data source the tile belongs to.

    • tileKey: TileKey

      The key identifying the tile.

    • offset: number

      Tile offset.

    • frameNumber: number

      Frame in which the tile was requested

    Returns undefined | Tile

    The tile if it was found or created, undefined otherwise.

  • Visit each tile in visible, rendered, and cached sets.

    • Visible and temporarily rendered tiles will be marked for update and retained.
    • Cached but not rendered/visible will be evicted.

    Parameters

    • Optional dataSource: DataSource

      If passed, only the tiles from this DataSource instance are processed. If undefined, tiles from all DataSources are processed.

    • Optional filter: ((tile) => boolean)

      Optional tile filter

        • (tile): boolean
        • Parameters

          Returns boolean

    Returns void

  • Sets cache size.

    Parameters

    • size: number

      cache size

    • computationType: ResourceComputationType = ResourceComputationType.EstimationInMb

      Optional value specifying the way a Tiles cache usage is computed, either based on size in MB (mega bytes) or in number of tiles. Defaults to ResourceComputationType.EstimationInMb.

    Returns void

  • Evaluate frustum near/far clip planes and visibility ranges.

    Parameters

    • Optional maxElevation: number
    • Optional minElevation: number

    Returns ViewRanges

  • Calculates a new set of visible tiles.

    Parameters

    • storageLevel: number

      The camera storage level, see storageLevel.

    • zoomLevel: number

      The camera zoom level.

    • dataSources: DataSource[]

      The data sources for which the visible tiles will be calculated.

    • frameNumber: number
    • Optional elevationRangeSource: ElevationRangeSource

      Source of elevation range data if any.

    Returns {
        viewRanges: ViewRanges;
        viewRangesChanged: boolean;
    }

    view ranges and their status since last update (changed or not).

    • viewRanges: ViewRanges
    • viewRangesChanged: boolean

Generated using TypeDoc