Unbind postrender event in feature-move-animation example

This commit is contained in:
Florent gravin
2018-11-16 10:21:17 +01:00
committed by Tim Schaub
parent a924834920
commit 039af41af1

View File

@@ -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);