getGeoJsonClusterLeaves

fun getGeoJsonClusterLeaves(sourceIdentifier: String, cluster: Feature, limit: Long = QFE_DEFAULT_LIMIT, offset: Long = QFE_DEFAULT_OFFSET, callback: QueryFeatureExtensionCallback): Cancelable

Returns all the leaves (original points) of a cluster (given its cluster_id) from a GeoJsonSource, with pagination support: limit is the number of leaves to return (set to Infinity for all points), and offset is the amount of points to skip (for pagination).

Requires configuring the source as a cluster by calling GeoJsonSource.Builder#cluster(boolean).

Return

A cancelable object that could be used to cancel the pending query.

Parameters

sourceIdentifier

GeoJsonSource identifier.

cluster

Cluster from which to retrieve leaves from

limit

The number of points to return from the query (must use type Long, set to maximum for all points). Defaults to 10.

offset

The amount of points to skip (for pagination, must use type Long). Defaults to 0.

callback

The result will be returned through the QueryFeatureExtensionCallback. The result is a feature collection or a string describing an error if the operation was not successful.