feat: add clusterMinPoints option Android and iOS (#3601)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Markus Wendorf
2025-07-08 15:26:43 +02:00
committed by GitHub
parent 309c33f784
commit 1927247c0c
10 changed files with 50 additions and 1 deletions

View File

@@ -100,6 +100,17 @@ class GeoJsonOptions : HashMap<String?, Any?>() {
return this
}
/**
* Minimum number of points to form a cluster
*
* @param clusterMinPoints minimum number of points to form a cluster - Defaults to 2
* @return the current instance for chaining
*/
fun withClusterMinPoints(clusterMinPoints: Int): GeoJsonOptions {
this["clusterMinPoints"] = clusterMinPoints
return this
}
/**
* An object defining custom properties on the generated clusters if clustering is enabled,
* aggregating values from clustered points. Has the form {"property_name": [operator, [map_expression]]} or