Calls release(), for await using.
Hosts without Symbol.asyncDispose, such as ArkTS, leave it undefined.
Calls release(), for using.
Hosts without Symbol.dispose, such as ArkTS, leave it undefined.
ReadonlyidThe native handle value. It stays readable after release.
Whether a release, dispose, or discard has ended the handle.
Evaluates a style expression and writes its result as JSON.
A number in the result that isn't finite becomes null. A color is ["rgba", r, g, b, a], with red, green, and blue from 0 to 255 and alpha from 0 to
1, each exact only to single precision. Formatted text is a ["format", …]
expression, an image is {"name": …, "available": …}, padding is [top, right, bottom, left], and a variable anchor offset is [anchor, [x, y], …].
See mln_style_expression_evaluate in the
C API reference.
Errors:
Status.invalidArgument when the expression fails to evaluate, such as
when it reads an input that inputs doesn't set.Optionalinputs: StyleExpressionInputsReads what a style expression's result depends on.
See mln_style_expression_get_info in the
C API reference.
Releases a parsed style expression.
See mln_style_expression_release in the
C API reference.
Names the owner's type, its handle ID, and whether it is closed.
StaticcreateParses a style [expression](https://maplibre.org/maplibre-style-spec/expressions/) to evaluate without a map.
See mln_style_expression_create in the
C API reference.
Errors:
Status.invalidArgument when expression isn't a valid expression, or
its result can't have the expected type.Optionaloptions: StyleExpressionOptions
A parsed style expression.
See
mln_style_expressionin the C API reference.