getGeoJsonClusterChildren

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

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).

Parameters

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.

cluster

cluster from which to retrieve children from

sourceIdentifier

GeoJsonSource identifier.