spatial-monorepo / ui/src / addPOISymbolLayer
Function: addPOISymbolLayer()
addPOISymbolLayer(
map,features,_spriteUrl):void
Defined in: packages/ui/src/layers/POISymbolLayer.ts:120
Adds the POI symbol layer to the map. Safe to call when the source/layer already exist — skips re-adding instead of throwing on duplicate IDs (e.g. React StrictMode double-invoke).
Parameters
map
Map$1
MapLibre map instance.
features
POIFeatureCollection
GeoJSON FeatureCollection (may include non-POI features).
_spriteUrl
string
Returns
void
