Options
All
  • Public
  • Public/Protected
  • All
Menu

A class used to lookup properties by name.

remarks

Concrete implementation of Env like MapEnv are used to resolve the property names used in style expressions.

example
const env = new MapEnv({
    kind: "landuse",
});

const expr = Expr.fromJson(["get", "kind"]);

const value = expr.evaluate(env);

console.log(`kind is '${value}`);

Hierarchy

Index

Methods

Methods

lookup

  • lookup(name: string): Value | undefined

unmap

Static isEnv

  • isEnv(object: any): object is Env

Generated using TypeDoc