Skip to content

Commit

Permalink
Fix import for OlObservable
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Aug 14, 2018
1 parent 8a047ed commit dee49cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AnimateUtil/AnimateUtil.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import OlObservable from 'ol/Observable';
import OlGeomPoint from 'ol/geom/Point';
import OlGeomLineString from 'ol/geom/LineString';
import { unByKey } from 'ol/Observable';

/**
* This class provides some static methods which might be helpful when working
Expand Down Expand Up @@ -68,7 +68,7 @@ class AnimateUtil {
}

if (elapsed > duration || actualFrames >= expectedFrames) {
OlObservable.unByKey(listenerKey);
unByKey(listenerKey);
resolve(featureToMove);
}
// tell OL3 to continue postcompose animation
Expand Down

0 comments on commit dee49cb

Please sign in to comment.