From 96a53156c277a2fc03a83134da55d7c72a79a441 Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Mon, 13 Mar 2017 12:58:09 +0200 Subject: =?UTF-8?q?[core]=20don=E2=80=99t=20query=20rendered=20features=20?= =?UTF-8?q?until=20all=20data=20is=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mbgl/annotation/annotation_tile.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mbgl/annotation') 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 getFeature(std::size_t i) const override { return std::make_unique(features[i]); } + + std::unique_ptr getFeature(std::size_t i) const override { + return std::make_unique(features.at(i)); + } + std::string getName() const override { return name; }; std::vector features; -- cgit v1.2.1