Unbind postrender event in feature-move-animation example
This commit is contained in:
committed by
Tim Schaub
parent
a924834920
commit
039af41af1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user