diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-07-24 18:19:00 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-07-25 17:36:35 +0300 |
commit | 273ad436fb4d2a18c6749bd4e40fa56546e9285c (patch) | |
tree | ba1c66084f43adb5d9a66c48279723fc62d35288 /src/mbgl/tile/vector_tile_data.hpp | |
parent | e6e1e15f950dc246e609cf4acf5b9d6ca13f8806 (diff) | |
download | qtlocation-mapboxgl-273ad436fb4d2a18c6749bd4e40fa56546e9285c.tar.gz |
[core] Avoid copying feature properties
Diffstat (limited to 'src/mbgl/tile/vector_tile_data.hpp')
-rw-r--r-- | src/mbgl/tile/vector_tile_data.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/tile/vector_tile_data.hpp b/src/mbgl/tile/vector_tile_data.hpp index 525c7935e4..f5086936f8 100644 --- a/src/mbgl/tile/vector_tile_data.hpp +++ b/src/mbgl/tile/vector_tile_data.hpp @@ -15,13 +15,14 @@ public: FeatureType getType() const override; optional<Value> getValue(const std::string& key) const override; - std::unordered_map<std::string, Value> getProperties() const override; + const PropertyMap& getProperties() const override; FeatureIdentifier getID() const override; const GeometryCollection& getGeometries() const override; private: mapbox::vector_tile::feature feature; mutable optional<GeometryCollection> lines; + mutable optional<PropertyMap> properties; }; class VectorTileLayer : public GeometryTileLayer { |