evaluate

abstract fun evaluate(feature: Cesium3DTileFeature, result: Any? = definedExternally): Any(source)

Evaluates the result of an expression, optionally using the provided feature's properties. If the result of the expression in the 3D Tiles Styling language is of type Boolean, Number, or String, the corresponding JavaScript primitive type will be returned. If the result is a RegExp, a Javascript RegExp object will be returned. If the result is a Cartesian2, Cartesian3, or Cartesian4, a Cartesian2, Cartesian3, or Cartesian4 object will be returned. If the result argument is a Color, the Cartesian4 value is converted to a Color and then returned.

Return

The result of evaluating the expression.

Parameters

feature

The feature whose properties may be used as variables in the expression.

result

The object onto which to store the result.

See also