From 039af41af1cc360b47e0e13670565ba83e5871f2 Mon Sep 17 00:00:00 2001 From: Florent gravin Date: Fri, 16 Nov 2018 10:21:17 +0100 Subject: [PATCH] Unbind postrender event in feature-move-animation example --- examples/feature-move-animation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/feature-move-animation.js b/examples/feature-move-animation.js index f19b590b70..a5119d3e97 100644 --- a/examples/feature-move-animation.js +++ b/examples/feature-move-animation.js @@ -195,7 +195,7 @@ function stopAnimation(ended) { /** @type {module:ol/geom/Point~Point} */ (geoMarker.getGeometry()) .setCoordinates(coord); //remove listener - map.un('postcompose', moveFeature); + vectorLayer.un('postrender', moveFeature); } startButton.addEventListener('click', startAnimation, false);