ol. ol.expr

Source:
  • expr.jsdoc, line 1

Methods

<static> parse

Parse an expression.

Parameters:
Name Type Description
source string

The expression source (e.g. 'foo + 2').

Source:
  • expression.js, line 41
Returns:

An expression instance that can be evaluated within some scope to provide a value.

Type
ol.expr.Expression

<static> register

Register a library function to be used in expressions.

Parameters:
Name Type Description
name string

The function name (e.g. 'myFunc').

func function

The function to be called in an expression. This function will be called with a feature as the this argument when the expression is evaluated in the context of a features.

Source:
  • expression.js, line 54