On this page

Function parseGeoJSONFeatureToKeyframes

  • 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

    Parameters

    Returns Keyframe[]

    Array of keyframe objects that can be used for animation

    When no geometry is found in the feature

    When the geometry type is not supported

Was this helpful?
SDK JS
Reference
parseGeoJSONFeatureToKeyframes