简体   繁体   中英

Moving map markers in GMap.NET

I haven't found anything on how to change position of placed GMap.NET markers. I need to be able to move it through GUI by mouse (drag and drop) and/or manually by entering new coordinates. Is it even possible?

I've done something similar, with arrow key buttons moving a plane marker. The GMapMarker class has a position variable you can use for this. Using my code as an example, it looks something like this:

plane.Position = new PointLatLng(latitude, longitude)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM