spatial-monorepo / core/src / addPointLayer
Function: addPointLayer()
addPointLayer(
map,id,sourceId,options,data?):void
Defined in: packages/core/src/layers/DataLayer.ts:115
addPointLayer — 'sphere' (default) renders a MapLibre circle layer.
Issue #612: 'cube' previously added a fill-extrusion MapLibre layer on the point source. MapLibre fill-extrusion layers only rasterize Polygon/ MultiPolygon geometry, so on a Point FeatureCollection the layer existed but silently drew zero pixels — no error, no warning. 'cube' now renders via a deck.gl ColumnLayer through the shared MapboxOverlay, the same path addFurnitureLayer already uses for extruded geometry, fed the real point positions from data.
Parameters
map
Map$1 | null | undefined
id
string
sourceId
string
options
data?
FeatureCollection`<Geometry, GeoJsonProperties>`
Returns
void
