getGeoJsonClusterChildren

suspend fun MapboxMap.getGeoJsonClusterChildren(sourceIdentifier: String, cluster: Feature): Expected<String, FeatureExtensionValue>

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 feature collection or a string describing an error.

Parameters

sourceIdentifier

GeoJsonSource identifier.

cluster

cluster from which to retrieve children from