@terrestris/ol-util

    This class provides some static methods which might be helpful when working with digitize functions to animate features.

    AnimateUtil

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Moves / translates an OlFeature to the given pixel delta in the end with given duration in ms, using the given style.

      Parameters

      • map: Map

        An OlMap.

      • layer: VectorLayer<VectorSource<Feature<Geometry>>>

        A vector layer to receive a postrender event.

      • featureToMove: Feature<Geometry>

        The feature to move.

      • duration: number

        The duration in ms for the moving to complete.

      • pixel: number

        Delta of pixels to move the feature.

      • Optionalstyle: Style

        The style to use when moving the feature.

      Returns Promise<Feature<Geometry>>

      Promise of the moved feature.

    MMNEPVFCICPMFPCPTTAAATR