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-22 10:55:56 +0300
commita1da06cb68ebfe98601390349d5d914a9c939c70 (patch)
tree6233518f662e2c9aaffc9d6fab5bdae8b00bd2ca /src/mbgl/tile/geojson_tile.hpp
parent4a05d58df6b2736a56015eea7dd9433ca822573a (diff)
downloadqtlocation-mapboxgl-a1da06cb68ebfe98601390349d5d914a9c939c70.tar.gz
[core] Fix GeoJSON tiles 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,