In this case, I use the Mapcontrols from OpenLayers 2.10. On the map I have a base layer that has OpenLayers.Layer.OSMand OpenLayers.Layer.Vectorwith user-defined functions. Now, when I move the map with the mouse, functions that were not previously visible will not be redrawn until the mouse button is released. I noticed the same problem in all examples OpenLayers. Can someone provide some work to change this behavior? What I want to achieve is to draw functions immediately after the function becomes visible or always attracts all functions (I work with a small number of functions, therefore the performance of managing the map is not critical).
My current idea is to handle some specific events on the map (for example, moving a mouse with a click) and drag and drop functions.
source
share