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 11:43:37 +0300 |
commit | 54e3a05d522445307b493937081b5a32cae09361 (patch) | |
tree | 48d822d20a89743ea93dd0fd15a5878b9609d8b4 /src/mbgl/tile/vector_tile_data.hpp | |
parent | 7ce892366d89964a04361201db66bced4dc01dee (diff) | |
download | qtlocation-mapboxgl-upstream/mikhail_avoid_feature_properties_copying.tar.gz |
[core] Avoid copying feature propertiesupstream/mikhail_avoid_feature_properties_copying
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 { |