diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-21 15:41:09 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-22 10:55:56 +0300 |
commit | a1da06cb68ebfe98601390349d5d914a9c939c70 (patch) | |
tree | 6233518f662e2c9aaffc9d6fab5bdae8b00bd2ca /src/mbgl/tile/geojson_tile.hpp | |
parent | 4a05d58df6b2736a56015eea7dd9433ca822573a (diff) | |
download | qtlocation-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.hpp | 2 |
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, |