The constructor of the PoiManager
.
The MapView instance that should display the POIs.
Add an {@link @here/harp-datasource-protocol#ImageTexture} such that it is available as a named entity for techniques in theme files.
{@link @here/harp-datasource-protocol#ImageTexture} that should be available for POIs.
Add all POIs from a decoded tile and store them as TextElements in the Tile.
Also handles LineMarkers, which is a recurring marker along a line (road).
Tile to add POIs to.
DecodedTile containing the raw {@link @here/harp-datasource-protocol#PoiGeometry} objects describing the POIs.
Load the texture atlas that defines the segments of the texture that should be used for specific icons.
Name of the image from the theme (NOT the url!).
URL of the JSON file defining the texture atlas.
Signal to Abort the loading of the Atlas Image
Clear internal state. Applicable when switching themes.
Return the {@link @here/harp-datasource-protocol#ImageTexture} registered under the specified name.
Name of the {@link @here/harp-datasource-protocol#ImageTexture}.
Update the TextElement with the information taken from the PoiTable which is referenced in the PoiInfo of the pointLabel.
If the requested PoiTable is not available yet, the function returns false
.
If the PoiTable is not defined, or if the references POI has no entry in
the PoiTable, no action is taken, and the function returns false
.
If the PoiTable has been processed, it returns true
, indicating that this function
doesn't have to be called again.
The TextElement to update.
true
if the PoiTable has been processed, and the
function does not have to be called again.
Generated using TypeDoc
POI manager class, responsible for loading the {@link @here/harp-datasource-protocol#PoiGeometry} objects from the {@link @here/harp-datasource-protocol#DecodedTile}, and preparing them for rendering.
Also loads and manages the texture atlases for the icons.