[core] Avoid copying feature properties
This commit is contained in:
@@ -15,7 +15,7 @@ public:
|
||||
FeatureType getType() const override {
|
||||
return apply_visitor(ToFeatureType(), feature.geometry);
|
||||
}
|
||||
PropertyMap getProperties() const override { return feature.properties; }
|
||||
const PropertyMap& getProperties() const override { return feature.properties; }
|
||||
FeatureIdentifier getID() const override { return feature.id; }
|
||||
optional<mbgl::Value> getValue(const std::string& key) const override {
|
||||
auto it = feature.properties.find(key);
|
||||
|
||||
Reference in New Issue
Block a user