The constructor of the PoiManager
.
Readonly
mapThe MapView instance that should display the POIs.
Add an @xyzmaps/harp-datasource-protocol#ImageTexture such that it is available as a named entity for techniques in theme files.
@xyzmaps/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 @xyzmaps/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.
Optional
abortSignal: AbortSignalSignal to Abort the loading of the Atlas Image
Creates an @xyzmaps/harp-datasource-protocol#ImageTexture for every element in the atlas, such that it can be addressed in the theme file.
Return the @xyzmaps/harp-datasource-protocol#ImageTexture registered under the specified name.
Name of the @xyzmaps/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 @xyzmaps/harp-datasource-protocol#PoiGeometry objects from the @xyzmaps/harp-datasource-protocol#DecodedTile, and preparing them for rendering.
Remarks
Also loads and manages the texture atlases for the icons.