getGeoJsonClusterExpansionZoom

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

Returns the zoom on which the cluster expands into several children (useful for "click to zoom" feature) given the cluster's cluster_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 value or a string describing an error.

Parameters

sourceIdentifier

GeoJsonSource identifier.

cluster

cluster from which to retrieve the expansion zoom from