[OpenLayers-Dev] Pan with left,
Zoom(Box) with right mouse button
danlittle at yahoo.com
Wed Jan 13 09:17:38 EST 2010
I think all of the code is there for the options you want to create but you'll need to spend some time writing a custom Control. You can probably start with the OpenLayers.Control.Navigation class.
>From: Dirk Hamberger <Dirk.Hamberger at ptv.de>
>To: "dev at openlayers.org" <dev at openlayers.org>
>Sent: Wed, January 13, 2010 1:44:44 AM
>Subject: [OpenLayers-Dev] Pan with left, Zoom(Box) with right mouse button
>has anybody already tried to alter the way
>panning and dragging a zoombox?
>I don’t want to have a “modifier
>key” to switch the Navigation-Control
>to zoombox mode, instead I want to have the
>ZoomBox feature on
>the right mousebutton.
>What is even trickier – at the same
>time I still want to be able to
>Intercept a “normal” right
>mouse click (say mousedown or mouseup
>Event) in order to install a custom context
>menu when the right mouse
>Is just clicked and not dragged a few
>Any solution or approaches to that kind of
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dev