跳到主要内容

flywave-mapview.poimanager

Home > @flywave/flywave-mapview > PoiManager

PoiManager class

POI manager class, responsible for loading the objects from the , and preparing them for rendering.

Signature:

export declare class PoiManager 

Remarks

Also loads and manages the texture atlases for the icons.

Constructors

Constructor

Modifiers

Description

(constructor)(mapView)

The constructor of the PoiManager.

Properties

Property

Modifiers

Type

Description

mapView

readonly

MapView

Methods

Method

Modifiers

Description

addImageTexture(imageTexture)

Add an such that it is available as a named entity for techniques in theme files.

addPois(tile, decodedTile)

Add all POIs from a decoded tile and store them as s in the Tile.

Also handles LineMarkers, which is a recurring marker along a line (road).

addTextureAtlas(imageName, atlas, abortSignal)

Load the texture atlas that defines the segments of the texture that should be used for specific icons.

clear()

Clear internal state. Applicable when switching themes.

getImageTexture(name)

Return the registered under the specified name.

updatePoiFromPoiTable(pointLabel)

Update the with the information taken from the PoiTable which is referenced in the 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.