[core] Fix VectorTileFeature::getValue() semantics after geometry@v1.0.0

This commit is contained in:
Bruno de Oliveira Abinader
2018-11-26 08:26:26 +02:00
parent f3b9a43b13
commit 82be3104cd
2 changed files with 36 additions and 1 deletions

View File

@@ -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 {