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-21 15:41:09 +0300 |
commit | fdcb8a8d6954be90f745c94c2b77da4d867404c9 (patch) | |
tree | c4855cd2f8cae5872dcf89f991e9399f0156f86a /src/mbgl/tile/geojson_tile.hpp | |
parent | 00d4f812acb3a513fd70f4e15a71ae47662bf292 (diff) | |
download | qtlocation-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.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, |