[core] Fix VectorTileFeature::getValue() semantics after geometry@v1.0.0
This commit is contained in:
@@ -22,7 +22,8 @@ FeatureType VectorTileFeature::getType() const {
|
||||
}
|
||||
|
||||
optional<Value> VectorTileFeature::getValue(const std::string& key) const {
|
||||
return feature.getValue(key);
|
||||
const optional<Value> value(feature.getValue(key));
|
||||
return value->is<NullValue>() ? nullopt : std::move(value);
|
||||
}
|
||||
|
||||
std::unordered_map<std::string, Value> VectorTileFeature::getProperties() const {
|
||||
|
||||
Reference in New Issue
Block a user