Class: AnimateUtil

AnimateUtil()

new AnimateUtil()

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

Source:

Methods

(static) moveFeature(map, featureToMove, duration, pixel, style) → {String}

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

Parameters:
Name Type Description
map OlMap

An OlMap.

featureToMove OlFeature

The feature to move.

duration Number

The duration in ms for the moving to complete.

pixel Array.<Number>

Delta of pixels to move the feature.

style OlStyleStyle

The style to use when moving the feature.

Source:
Returns:

A listener key from a postcompose event.

Type
String