Don't enforce ["zoom"] constraints for filters (#11672)
* Don't enforce ["zoom"] constraints for filters Fixes #11594 * Add a couple of comments * Fix ambiguous constructor call * ParsingContext(optional<Type>) => ParsingContext(Type)
This commit is contained in:
@@ -75,8 +75,8 @@ void NodeExpression::Parse(const Nan::FunctionCallbackInfo<v8::Value>& info) {
|
||||
auto expr = info[0];
|
||||
|
||||
try {
|
||||
ParsingContext ctx(expected);
|
||||
ParseResult parsed = ctx.parse(mbgl::style::conversion::Convertible(expr));
|
||||
ParsingContext ctx = expected ? ParsingContext(*expected) : ParsingContext();
|
||||
ParseResult parsed = ctx.parseLayerPropertyExpression(mbgl::style::conversion::Convertible(expr));
|
||||
if (parsed) {
|
||||
assert(ctx.getErrors().size() == 0);
|
||||
auto nodeExpr = new NodeExpression(std::move(*parsed));
|
||||
|
||||
Reference in New Issue
Block a user