Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit f74de67

Browse files
committed
[core] Mark tile as incomplete while redoing placement
1 parent 34fbd56 commit f74de67

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"lodash": "^4.16.4",
2525
"mapbox-gl": "mapbox/mapbox-gl-js#ab836206d415ca3a74257a3066d11a54ab2838cb",
2626
"mapbox-gl-style-spec": "mapbox/mapbox-gl-style-spec#49e8b407bdbbe6f7c92dbcb56d3d51f425fc2653",
27-
"mapbox-gl-test-suite": "mapbox/mapbox-gl-test-suite#66397c8ee0426537d25e8d4cfcac134ca21a021b",
27+
"mapbox-gl-test-suite": "mapbox/mapbox-gl-test-suite#bbe948a30c3879b77a220eaa1336f61d46db5953",
2828
"mkdirp": "^0.5.1",
2929
"node-cmake": "^1.2.1",
3030
"pixelmatch": "^4.0.2",

src/mbgl/tile/geometry_tile.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ void GeometryTile::setPlacementConfig(const PlacementConfig& desiredConfig) {
6161
return;
6262
}
6363

64+
// Mark the tile as pending again if it was complete before to prevent signaling a complete
65+
// state despite pending parse operations.
66+
if (availableData == DataAvailability::All) {
67+
availableData = DataAvailability::Some;
68+
}
69+
6470
++correlationID;
6571
requestedConfig = desiredConfig;
6672
worker.invoke(&GeometryTileWorker::setPlacementConfig, desiredConfig, correlationID);

0 commit comments

Comments
 (0)