A class used to lookup properties by name.
Concrete implementation of Env like MapEnv are used to resolve the property names used in style expressions.
Env
const env = new MapEnv({ kind: "landuse", }); const expr = Expr.fromJson(["get", "kind"]); const value = expr.evaluate(env); console.log(`kind is '${value}`);
Returns property in Env by name.
Name of property.
Return an object containing all properties of this environment. (Here: empty object).
Returns true if the given object is an instance of Env.
true
The object to test.
Generated using TypeDoc
A class used to lookup properties by name.
Concrete implementation of
Env
like MapEnv are used to resolve the property names used in style expressions.const env = new MapEnv({ kind: "landuse", }); const expr = Expr.fromJson(["get", "kind"]); const value = expr.evaluate(env); console.log(`kind is '${value}`);