Hello,
I am currently using OpenLayers 2.4 and would like to temporarily prevent the
user for using the PanZoomBar and the MouseToolBar. My application periodically
refreshes markers on the map using an asynchronous call. I would like to
prevent the user from panning or zooming while the refresh is taking place.
I have tried the approach described in the following post (using the
MouseToolBar and PanZoomBar controls). However, the controls still seem to
function as normal.
http://openlayers.org/pipermail/users/2007-February/000620.html
Below is basically what I have tried in code:
var panZoom = new OpenLayers.Control.PanZoomBar();
map.addControl(panZoom);
...
// To disable
panZoom.zoomBarDown = new function(){};
panZoom.zoomBarDrag = new function(){};
panZoom.zoomBarUp = new function(){};
panZoom.buttonDown = new function(){};
panZoom.doubleClick = new function(){};
Does anyone have any suggestions regarding how to temporarily prevent the user
from panning and zooming?
Thanks in advance,
Matt
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users