Heitor Chang
Heitor Chang

Reputation: 6057

Google maps V3 drag map with right mouse button?

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?

Upvotes: 4

Views: 1331

Answers (1)

ChrisR
ChrisR

Reputation: 14467

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.

Upvotes: 5

Related Questions