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
Was this helpful?