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

@@ -18,6 +18,7 @@
NSArray *clusterPropertyArray = @[reduceExpression, mapExpression];
NSDictionary *options = @{MLNShapeSourceOptionClustered: @YES,
MLNShapeSourceOptionClusterRadius: @42,
MLNShapeSourceOptionClusterMinPoints: @3,
MLNShapeSourceOptionClusterProperties: @{@"sumValue": clusterPropertyArray},
MLNShapeSourceOptionMaximumZoomLevelForClustering: @98,
MLNShapeSourceOptionMaximumZoomLevel: @99,
@@ -29,6 +30,7 @@
XCTAssertTrue(mbglOptions->cluster);
XCTAssertEqual(mbglOptions->clusterRadius, 42);
XCTAssertEqual(mbglOptions->clusterMaxZoom, 98);
XCTAssertEqual(mbglOptions->clusterMinPoints, 3UL);
XCTAssertEqual(mbglOptions->maxzoom, 99);
XCTAssertEqual(mbglOptions->buffer, 1976);
XCTAssertEqual(mbglOptions->tolerance, 0.42);