diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-03-13 12:58:09 +0200 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-03-14 17:27:59 +0200 |
commit | 96a53156c277a2fc03a83134da55d7c72a79a441 (patch) | |
tree | d3d39198e37a0e0f15196cbd1c35e802d50c32dd /src/mbgl/annotation | |
parent | 78d6d07d57d8b2f9a5aa25f9f84cc18b6d3b90e6 (diff) | |
download | qtlocation-mapboxgl-96a53156c277a2fc03a83134da55d7c72a79a441.tar.gz |
[core] don’t query rendered features until all data is available
Diffstat (limited to 'src/mbgl/annotation')
-rw-r--r-- | src/mbgl/annotation/annotation_tile.hpp | 6 |
1 files changed, 5 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; |