我正在使用GMap.NET Windows Forms编写一个WinForms应用程序。 我注意到地图是有限的。 例如,它不显示澳大利亚以东的任何内容:
请注意右侧的白色部分。
这是创建地图的代码(不包括标记):
// 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;
我希望这张地图的行为类似于谷歌地图——如果我一直向东走,我将穿过澳大利亚,再次看到南美洲。
我在互联网上搜索了“gmap.net infinite”等关键词。我所能找到的只有这个,它是关于地图仅显示在GMapControl
的一部分的问题。另一方面,我希望地图可以无限延伸。也许我没有使用正确的术语。
如何使地图无限延伸?
我还考虑限制用户可以看到的区域,以便用户永远不会看到白色的部分,但我所能找到的只有这个未被回答的问题。