使用鼠标左键拖动 gmap

本文关键字:拖动 gmap 鼠标 | 更新日期: 2023-09-27 18:37:07

我正在使用 gmap.net 控件在Windows上显示地图,forms.as 现在一切都很好,除了地图拖动 functionality.in 鼠标左键支持常规地图拖动,但在 gmap.net 控件中

鼠标右键支持拖动。

我的问题是:有什么方法可以使用鼠标左键实现地图拖动功能。

请帮助我。

提前谢谢。

使用鼠标左键拖动 gmap

我已经找到了答案,它只是设置GMAP控件的DragButton属性

MainGMap.DragButton = MouseButton.Left;

根据接受的答案,我不得不将MouseButton更改为MouseButtons才能使其工作:

MainGMap.DragButton = MouseButtons.Left;