简体   繁体   中英

Drawing 2D regions on a map C# [on hold]

This should be much easier than what I am experiencing. I think I'm being dumb. Anyway I need to draw complex 2D regions (with holes and may consist of a few areas not physically connected) on a world map in C# winforms, then also get an event triggered when one is clicked(also need to know which one)

I have been using GMapPolygon up until now but this proved to be insufficient because it just builds with lines. I am also aware of the Ggoogle Maps Javascript API, but this does not seem to be free.

Is there any good free libraries that can help me here?

I have done some prototyping using HERE API using the REST API, and it works well. The Freemium plan gives you 250k queries per month, so depending on your needs, it may be free enough for you. And https://developer.here.com/api-explorer/maps-js/events/position-on-mouse-click shows how to convert a click into a location, which you can then easily verify against your active region list.

There are other free map tools, such as OpenStreetMap.

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