Google maps V3 drag map with right mouse button?

google-maps, javascript

Solution

Most other sites solve this by using different modes of using the map. For example when you click a "draw" button you enter "drawing mode" which just disables some Google Maps features like dragging and enables the drawing functionality.

That's the only way I can think of this'll work. Using the right mouse button to draw feels wrong and most users will probably agree i'm afraid.

Problem

In a normal map, if you left-click mostly anywhere and drag, the map pans. My question is: can you swap left and right buttons to pan the map? That is, left-clicking and dragging does nothing, while panning happens with right-clicking and dragging? Perhaps there's a JavaScript hack unrelated to Google Maps to accomplish this?

Original source