Implemented synchronous update for GeoJSON source (#3968)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Cristici
2025-12-03 01:02:29 +02:00
committed by GitHub
parent f25a4581fe
commit 29d70ef0bb
32 changed files with 408 additions and 116 deletions

View File

@@ -24,7 +24,8 @@
MLNShapeSourceOptionMaximumZoomLevel: @99,
MLNShapeSourceOptionBuffer: @1976,
MLNShapeSourceOptionSimplificationTolerance: @0.42,
MLNShapeSourceOptionLineDistanceMetrics: @YES};
MLNShapeSourceOptionLineDistanceMetrics: @YES,
MLNShapeSourceOptionSynchronousUpdate: @YES};
auto mbglOptions = MLNGeoJSONOptionsFromDictionary(options);
XCTAssertTrue(mbglOptions->cluster);
@@ -36,6 +37,7 @@
XCTAssertEqual(mbglOptions->tolerance, 0.42);
XCTAssertTrue(mbglOptions->lineMetrics);
XCTAssertTrue(!mbglOptions->clusterProperties.empty());
XCTAssertTrue(mbglOptions->synchronousUpdate);
options = @{MLNShapeSourceOptionClustered: @"number 1"};
XCTAssertThrows(MLNGeoJSONOptionsFromDictionary(options));