In my OpenLayers web app I have registered an onmousemove
event which performs certain functions. What I am really after though is a way to register and handle the user panning or zooming the map.
[GIS] On Map Move event in OpenLayers
eventsopenlayers
Related Question
- [GIS] How to see if a function is already registered to an event on an OpenLayers map
- [GIS] How to register to event in OpenLayers 3
- [GIS] `change:center` event not fired on drag animation
- [GIS] Keep OpenLayers 3 map from going past the dateline
- [GIS] Prevent panning and zooming beyond map edges in OpenLayers 4.6.4
Best Answer
In OpenLayers 2 you can do with the same method:
example code:
i hope it helps you...