Function getKeyframes
- getKeyframes(
coordinates: number[][],
deltas: number[],
easings: EasingFunctionName[],
properties?: Record<string, number[]>,
): Keyframe[]Parameters
- coordinates: number[][]
Array of coordinate points, where each point is an array of [longitude, latitude, altitude?]
- deltas: number[]
Array of time deltas between keyframes
- easings: EasingFunctionName[]
Array of easing function names to apply to each keyframe transition
- properties: Record<string, number[]> = {}
Optional additional properties as key-value pairs, where each value is an array of numbers corresponding to each keyframe
Returns Keyframe[]
An array of Keyframe objects, each containing coordinate props, delta, and easing information
- coordinates: number[][]
Was this helpful?
Generates an array of keyframes from coordinates, deltas, easings, and other properties provided by the geoJSON feature. Assumes that the coordinates are in the format [longitude, latitude, altitude?]. If altitude is not provided, it defaults to 0.