locar-tiler
    Preparing search index...

    Class DemApplier

    Class to apply DEM tiles to GeoJSON tiles. The elevation in metres will be added as the third member of each geometry coordinate in the GeoJSON.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    demTiler: DemTiler

    the DemTiler to use.

    jsonTiler: JsonTiler

    the JsonTiler to use.

    Methods

    • Updates the DemApplier with a new longitude/latitude reading.

      Calls update() on the DemTiler and JsonTiler to get new tiles, and then applies each DEM tile to the corresponding JSON tile.

      Parameters

      • lonLat: LonLat

        the longitude/latitude to update the tiles at.

      Returns Promise<DataTile[]>

      promise resolving with an array of updated JSON tiles with elevation added as a third member of the coordinates of each point. As for Tiler, only the newly-downloaded tiles are returned.