locar-tiler
    Preparing search index...

    Class DemTiler

    Class representing a Tiler which delivers DEM data.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    dataTiles: Map<string, DataTile>
    tile: Tile
    url: string

    Methods

    • For a given Spherical Mercator position and zoom, downloads data if necessary and returns the data at the tile corresponding to that position.

      Parameters

      • sphMercPos: EastNorth

        the Spherical Mercator position.

      • z: number = 13

        zoom level to use (default 13)

      Returns Promise<Tile>

      Promise resolving with the given Tile.

    • Obtain the elevation in metres for a given Spherical Mercator position.

      Parameters

      • sphMercPos: EastNorth

        the Spherical Mercator position.

      Returns number

      the elevation in metres, or Number.NEGATIVE_INFINITY if this position is outside the extent of the DEM.

    • Obtain the elevation in metres for a given longitude/latitude.

      Parameters

      • lonLat: LonLat

        the longitude/latitude.

      Returns number

      the elevation in metres, or Number.NEGATIVE_INFINITY if this position is outside the extent of the DEM.

    • Sets the zoom.

      Parameters

      • z: number

        the zoom to use.

      Returns void

    • Download new tiles for a given Spherical Mercator position.

      Parameters

      • pos: EastNorth

        the Spherical Mercator position.

      Returns Promise<DataTile[]>

      a Promise resolving with an array of the newly-downloaded data tiles (only new tiles; existing ones are not returned)

    • Download new tiles for a given longitude/latitude.

      Parameters

      Returns Promise<DataTile[]>

      a Promise resolving with an array of the newly-downloaded data tiles (only new tiles; existing ones are not returned)