Type Alias AnimatedRouteLayerOptions
AnimatedRouteLayerOptions: {
autoplay?: boolean;
cameraAnimation?: AnimatedCameraOptions;
delay?: number;
duration?: number;
easing?: EasingFunctionName;
iterations?: number;
manualUpdate?: boolean;
pathStrokeAnimation?: AnimatedStrokeOptions;
} & (
| { keyframes: Keyframe[]; source?: never }
| { keyframes?: never; source: SourceData }
)
autoplay?: boolean;
cameraAnimation?: AnimatedCameraOptions;
delay?: number;
duration?: number;
easing?: EasingFunctionName;
iterations?: number;
manualUpdate?: boolean;
pathStrokeAnimation?: AnimatedStrokeOptions;
} & (
| { keyframes: Keyframe[]; source?: never }
| { keyframes?: never; source: SourceData }
)
Type Declaration
Optionalautoplay?: booleanWhether the animation should autoplay
OptionalcameraAnimation?: AnimatedCameraOptionsThe camera animation options
Optionaldelay?: numberThe delay in ms before playing
Optionalduration?: numberThe Duration in ms
Optionaleasing?: EasingFunctionNameThe default easing to use if not provided in teh GeoJSON
Optionaliterations?: numberThe number of iterations
OptionalmanualUpdate?: booleanWhether the animation should auto matically animated or whether the frameAdvance method should be called
OptionalpathStrokeAnimation?: AnimatedStrokeOptionsThe stroke animation options, only viable for LineString geometries
- { keyframes: Keyframe[]; source?: never }
keyframes: Keyframe[]
The keyframes for the the animation OR
Optionalsource?: never
- { keyframes?: never; source: SourceData }
Optionalkeyframes?: neversource: SourceData
The source data
Was this helpful?
Configuration options for the AnimatedRouteLayer. This type supports either providing keyframes directly OR source data for the animation.