diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-03-08 16:12:44 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-03-09 11:57:34 -0700 |
commit | 7361f8566bc22f27a55de399bef23a03b4026094 (patch) | |
tree | d68e2b9b1f5f0dbbf3ebef915d2399fce518e991 /src/mbgl/map/vector_tile.hpp | |
parent | a45ae199cf37976d34301a024be31ef427c34892 (diff) | |
download | qtlocation-mapboxgl-7361f8566bc22f27a55de399bef23a03b4026094.tar.gz |
move to shared pointers for queried layers passed to buckets
Diffstat (limited to 'src/mbgl/map/vector_tile.hpp')
-rw-r--r-- | src/mbgl/map/vector_tile.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/map/vector_tile.hpp b/src/mbgl/map/vector_tile.hpp index 63efbab488..5fc6764b69 100644 --- a/src/mbgl/map/vector_tile.hpp +++ b/src/mbgl/map/vector_tile.hpp @@ -3,6 +3,7 @@ #include <mbgl/map/geometry_tile.hpp> #include <mbgl/style/filter_expression.hpp> +#include <mbgl/util/ptr.hpp> namespace mbgl { @@ -82,7 +83,7 @@ public: VectorTile(pbf); VectorTile& operator=(VectorTile&&); - virtual std::map<std::string, const GeometryTileLayer> getLayers() const; + virtual const util::ptr<const GeometryTileLayer> getLayer(const std::string&) const; private: std::map<std::string, const VectorTileLayer> layers; |