[OpenLayers-Users] How to switch between panning / zooming mode for dragging events?

Thomas Bengtson tben at refractions.net
Thu Jul 12 17:20:19 EDT 2007


I would like to incorporate the "zoom to bounding box" feature into a 
(non-openlayers) toolbar where the user clicks a button to put the map 
into "bounding box" mode with functionality like the current Shift-Drag 
feature.

Is there a way I can switch between panning and zooming for the maps' 
mousemove events?

or do I have to write code to capture mouse co-ords and call zoomToExtent?
or...
Thanks,
Tom



More information about the Users mailing list