For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Function addPoint
-
addPoint(
map: Map,
options: PointLayerOptions,
): {
clusterLayerId: string;
labelLayerId: string;
pointLayerId: string;
pointSourceId: string;
}Parameters
- map: Map
The Map instance to add a point layer to
- options: PointLayerOptions
Returns {
clusterLayerId: string;
labelLayerId: string;
pointLayerId: string;
pointSourceId: string;
}-
clusterLayerId: string
ID of the clustered point layer (empty if
clusteroptions idfalse) -
labelLayerId: string
ID of the layer that shows the count of elements in each cluster (empty if
clusteroptions idfalse) -
pointLayerId: string
ID of the unclustered point layer
-
pointSourceId: string
ID of the data source
- map: Map
Add a point layer from a GeoJSON source (or an existing sourceId) with many styling options