getGeoJsonClusterExpansionZoom

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

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 cancelable object that could be used to cancel the pending query.

Parameters

sourceIdentifier

GeoJsonSource identifier.

cluster

cluster from which to retrieve the expansion zoom from

callback

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