Class ZoomDependentExpression<Kind>
Type Parameters
- Kind extends EvaluationKind
Index
Constructors
Properties
Methods
Constructors
constructor
- new ZoomDependentExpression<Kind extends EvaluationKind>(
kind: Kind,
expression: StyleExpression,
zoomStops: number[],
interpolationType?: InterpolationType,
globalState?: Record<string, any>,
): ZoomDependentExpression<Kind>Type Parameters
- Kind extends EvaluationKind
Parameters
- kind: Kind
- expression: StyleExpression
- zoomStops: number[]
OptionalinterpolationType: InterpolationTypeOptionalglobalState: Record<string, any>
Returns ZoomDependentExpression<Kind>
Properties
globalStateRefs
globalStateRefs: Set<string>
interpolationType
isStateDependent
isStateDependent: boolean
kind
zoomStops
zoomStops: number[]
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
interpolationFactor
Parameters
- input: number
- lower: number
- upper: number
Returns number
Was this helpful?