getClusterExpansionZoom

fun getClusterExpansionZoom(cluster: Feature): Int

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

Requires configuring this source as a cluster by calling GeoJsonOptions.withCluster.

Return

the zoom on which the cluster expands into several children

Parameters

cluster

cluster from which to retrieve the expansion zoom from