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())
|
/** @type {module:ol/geom/Point~Point} */ (geoMarker.getGeometry())
|
||||||
.setCoordinates(coord);
|
.setCoordinates(coord);
|
||||||
//remove listener
|
//remove listener
|
||||||
map.un('postcompose', moveFeature);
|
vectorLayer.un('postrender', moveFeature);
|
||||||
}
|
}
|
||||||
|
|
||||||
startButton.addEventListener('click', startAnimation, false);
|
startButton.addEventListener('click', startAnimation, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user