On this page

Function addPoint

  • Add a point layer from a GeoJSON source (or an existing sourceId) with many styling options

    Parameters

    Returns {
        clusterLayerId: string;
        labelLayerId: string;
        pointLayerId: string;
        pointSourceId: string;
    }

    • clusterLayerId: string

      ID of the clustered point layer (empty if cluster options id false)

    • labelLayerId: string

      ID of the layer that shows the count of elements in each cluster (empty if cluster options id false)

    • pointLayerId: string

      ID of the unclustered point layer

    • pointSourceId: string

      ID of the data source

Was this helpful?
SDK JS
Reference
addPoint