getGeoJsonClusterChildren

fun getGeoJsonClusterChildren(sourceIdentifier: String, cluster: Feature, callback: QueryFeatureExtensionCallback): Cancelable

Returns the children (original points or clusters) of a cluster (on the next zoom level) given its id (cluster_id value from feature properties) from a GeoJsonSource.

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 children from

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.