[core] Forward evaluation context directly to evaluated property
So that default value owned by the FormatSectionOverride, can be evaluated based on required context parameters.
This commit is contained in:
@@ -27,7 +27,11 @@ public:
|
||||
return section.at(propertyName);
|
||||
}
|
||||
}
|
||||
return defaultValue.evaluate(*context.feature, *context.zoom, T());
|
||||
|
||||
return defaultValue.match(
|
||||
[&context] (const style::PropertyExpression<T>& e) { return e.getExpression().evaluate(context); },
|
||||
[] (const T& t) -> EvaluationResult { return t; }
|
||||
);
|
||||
}
|
||||
|
||||
void eachChild(const std::function<void(const Expression&)>& fn) const final {
|
||||
|
||||
Reference in New Issue
Block a user