summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-03-13 12:58:09 +0200
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-03-14 17:27:59 +0200
commit96a53156c277a2fc03a83134da55d7c72a79a441 (patch)
treed3d39198e37a0e0f15196cbd1c35e802d50c32dd /src
parent78d6d07d57d8b2f9a5aa25f9f84cc18b6d3b90e6 (diff)
downloadqtlocation-mapboxgl-96a53156c277a2fc03a83134da55d7c72a79a441.tar.gz
[core] don’t query rendered features until all data is available
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/annotation/annotation_tile.hpp6
-rw-r--r--src/mbgl/tile/geometry_tile.cpp1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/mbgl/annotation/annotation_tile.hpp b/src/mbgl/annotation/annotation_tile.hpp
index bf73075992..2c100ed50a 100644
--- a/src/mbgl/annotation/annotation_tile.hpp
+++ b/src/mbgl/annotation/annotation_tile.hpp
@@ -45,7 +45,11 @@ public:
AnnotationTileLayer(std::string);
std::size_t featureCount() const override { return features.size(); }
- std::unique_ptr<GeometryTileFeature> getFeature(std::size_t i) const override { return std::make_unique<AnnotationTileFeature>(features[i]); }
+
+ std::unique_ptr<GeometryTileFeature> getFeature(std::size_t i) const override {
+ return std::make_unique<AnnotationTileFeature>(features.at(i));
+ }
+
std::string getName() const override { return name; };
std::vector<AnnotationTileFeature> features;
diff --git a/src/mbgl/tile/geometry_tile.cpp b/src/mbgl/tile/geometry_tile.cpp
index 37787df9ea..5f1fc5de66 100644
--- a/src/mbgl/tile/geometry_tile.cpp
+++ b/src/mbgl/tile/geometry_tile.cpp
@@ -113,6 +113,7 @@ void GeometryTile::onLayout(LayoutResult result) {
nonSymbolBuckets = std::move(result.nonSymbolBuckets);
featureIndex = std::move(result.featureIndex);
data = std::move(result.tileData);
+ collisionTile.reset();
observer->onTileChanged(*this);
}