Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make the map be infinite in GMap.NET?

Tags:

c#

gmap.net

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:

enter image description here

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.

like image 615
Sweeper Avatar asked Jun 09 '18 15:06

Sweeper


People also ask

Is GMap net free?

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!


1 Answers

I found this in discussion section. They said that this feature does not implemented yet

https://github.com/radioman/greatmaps/issues/29

like image 131
Yigit Pilevne Avatar answered Oct 20 '22 19:10

Yigit Pilevne