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
Was this helpful?
Add a point layer from a GeoJSON source (or an existing sourceId) with many styling options