- Source:
- expr.jsdoc, line 1
Methods
-
<static> parse
-
Parse an expression.
Parameters:
Name Type Description sourcestring 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 namestring The function name (e.g. 'myFunc').
funcfunction The function to be called in an expression. This function will be called with a feature as the
thisargument when the expression is evaluated in the context of a features.- Source:
- expression.js, line 54