I am writing a WinForms app using GMap.NET Windows Forms. I noticed that the map is finite. It does not show anything to the east of Australia, for example:
Notice the white bit on the right.
This is my code to create the map (not including the markers):
// gmap is a field generated by the WinForms designer
gmap.MapProvider = GoogleMapProvider.Instance;
GMaps.Instance.Mode = AccessMode.ServerAndCache;
gmap.MinZoom = 1;
gmap.MaxZoom = 5;
gmap.Position = new PointLatLng(0, 0); // initial position is (0, 0), I moved it to the east
gmap.ShowCenter = false;
I want the map to behave similar to Google Maps - if I keep moving east, I will move past Australia and see South America again.
I looked around on the Internet for "gmap.net infinite" and similar keywords. All I could find was this, which is about the map being shown on only part of the GMapControl
. On the other hand, I want the map to continue infinitely. Maybe I was not using the correct terminology for this.
How can I make the map continue infinitely?
I have also thought of limiting the area that the user can see so that the user never sees the white bits, but all I could find was this unanswered question.
GMap.NET is a powerful, free, cross platform, Open Source . NET control. It enables the use of routing, geocoding, and maps from Google, Yahoo!, OpenStreet in Windows Forms and Presentation, and supports caching!
I found this in discussion section. They said that this feature does not implemented yet
https://github.com/radioman/greatmaps/issues/29
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With