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 StyleExpression
Index
Constructors
constructor
-
new StyleExpression(
expression: Expression,
propertySpec?: StylePropertySpecification | null,
globalState?: Record<string, any>,
): StyleExpressionParameters
- expression: Expression
OptionalpropertySpec: StylePropertySpecification | nullOptionalglobalState: Record<string, any>
Returns StyleExpression
Methods
evaluate
-
evaluate(
globals: GlobalProperties,
feature?: Feature,
featureState?: FeatureState,
canonical?: ICanonicalTileID,
availableImages?: string[],
formattedSection?: FormattedSection,
): anyParameters
- globals: GlobalProperties
Optionalfeature: FeatureOptionalfeatureState: FeatureStateOptionalcanonical: ICanonicalTileIDOptionalavailableImages: string[]OptionalformattedSection: FormattedSection
Returns any
evaluateWithoutErrorHandling
-
evaluateWithoutErrorHandling(
globals: GlobalProperties,
feature?: Feature,
featureState?: FeatureState,
canonical?: ICanonicalTileID,
availableImages?: string[],
formattedSection?: FormattedSection,
): anyParameters
- globals: GlobalProperties
Optionalfeature: FeatureOptionalfeatureState: FeatureStateOptionalcanonical: ICanonicalTileIDOptionalavailableImages: string[]OptionalformattedSection: FormattedSection
Returns any