summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/geojson_tile.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-21 15:41:09 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-21 15:41:09 +0300
commitfdcb8a8d6954be90f745c94c2b77da4d867404c9 (patch)
treec4855cd2f8cae5872dcf89f991e9399f0156f86a /src/mbgl/tile/geojson_tile.hpp
parent00d4f812acb3a513fd70f4e15a71ae47662bf292 (diff)
downloadqtlocation-mapboxgl-fdcb8a8d6954be90f745c94c2b77da4d867404c9.tar.gz
[core] Fix GeoJSON tiles updateupstream/mikhail_fix_geojson_source_update
Before this change, GeoJSON tiles data were updated before the corresponding layers were applied, therefore `GeometryTileWorker` parsed new data with the outdated layers. It caused the following render test failure: `mbgl-render-test text-max-width/unlimited regressions/mapbox-gl-native#9976 --recycle-map` Now a GeoJSON tile, which needs relayout, is not parsed until the valid layers are set.
Diffstat (limited to 'src/mbgl/tile/geojson_tile.hpp')
-rw-r--r--src/mbgl/tile/geojson_tile.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/tile/geojson_tile.hpp b/src/mbgl/tile/geojson_tile.hpp
index 725dc4850c..9161e33f0c 100644
--- a/src/mbgl/tile/geojson_tile.hpp
+++ b/src/mbgl/tile/geojson_tile.hpp
@@ -14,7 +14,7 @@ public:
const TileParameters&,
mapbox::feature::feature_collection<int16_t>);
- void updateData(mapbox::feature::feature_collection<int16_t>);
+ void updateData(mapbox::feature::feature_collection<int16_t>, bool resetLayers = false);
void querySourceFeatures(
std::vector<Feature>& result,