gmap dragging using left mouse button
Asked Answered
R

2

21

I'm using the gmap.net control to display the maps on windows forms.as of now everything works fine except the map dragging functionality.in general map dragging is supported with Left-Mouse Button , but in gmap.net control dragging is supported with Right-Mouse button.

Here my question is : Is there any way by which I can achieve the Map Dragging functionality using Left-Mouse Button.

Please Help Me.

Thanks in Advance.

Rabato answered 26/10, 2013 at 16:9 Comment(0)
R
50

I have found the answer, it is just setting the DragButton property of GMAP control

MainGMap.DragButton = MouseButton.Left;
Rabato answered 27/10, 2013 at 9:27 Comment(0)
S
4

Based on the accepted answer, I had to change MouseButton to MouseButtons for it to work:

MainGMap.DragButton = MouseButtons.Left;
Sailboat answered 15/5, 2020 at 15:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.