From dee49cb8e9ab731185f64d381a334307f96e19bf Mon Sep 17 00:00:00 2001 From: Daniel Koch Date: Tue, 14 Aug 2018 11:41:27 +0200 Subject: [PATCH] Fix import for OlObservable --- src/AnimateUtil/AnimateUtil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AnimateUtil/AnimateUtil.js b/src/AnimateUtil/AnimateUtil.js index f9b5ca3be..a45519f49 100644 --- a/src/AnimateUtil/AnimateUtil.js +++ b/src/AnimateUtil/AnimateUtil.js @@ -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 @@ -68,7 +68,7 @@ class AnimateUtil { } if (elapsed > duration || actualFrames >= expectedFrames) { - OlObservable.unByKey(listenerKey); + unByKey(listenerKey); resolve(featureToMove); } // tell OL3 to continue postcompose animation