For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class StylePropertyFunction<T>

Type Parameters

  • T
Index

Constructors

Properties

globalStateRefs: Set<string>
interpolationFactor: (input: number, lower: number, upper: number) => number
interpolationType: InterpolationType | null
isStateDependent: boolean
kind: "source" | "camera" | "composite"
zoomStops: number[]

Methods

  • Evaluates the legacy function, handling a runtime throw (e.g. interpolating mismatched value types) by warning with the property location and falling back to the spec default, mirroring StyleExpression.evaluate.

    Parameters

    • globals: GlobalProperties

      Global evaluation properties (e.g. zoom)

    • Optionalfeature: Feature

      The feature being evaluated, if any

    Returns any

    The function result, or the spec default if evaluation throws

Was this helpful?