Function parseGeoJSONFeatureToKeyframes
- parseGeoJSONFeatureToKeyframes(
feature: KeyframeableGeoJSONFeature,
options?: ParseGeoJSONToKeyframesOptions,
): Keyframe[]Parameters
- feature: KeyframeableGeoJSONFeature
The GeoJSON feature to convert to keyframes
- options: ParseGeoJSONToKeyframesOptions = {}
Configuration options
Returns Keyframe[]
Array of keyframe objects that can be used for animation
- feature: KeyframeableGeoJSONFeature
Was this helpful?
Converts a GeoJSON feature into an array of animation keyframes.
Parses a GeoJSON feature with reserved properties to create animation keyframes. It extracts coordinates from the geometry and uses properties prefixed with '@' as animation control parameters (easing functions, delta values). Non-reserved properties are preserved and passed to the keyframe objects as props that will be interpolated