GMap.NET没有显示出地图 [英] GMap.NET shows no map

查看:1323
本文介绍了GMap.NET没有显示出地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用 GMap.NET.WindowsForms 在我的Windows控制窗体应用程序,但我不能让它告诉我任何地图

I'm trying to use the GMap.NET.WindowsForms control in my Windows forms application but I cannot make it show me any map.

下面是我做的:

我通过单击工具箱中的上下文菜单和浏览增加了控制我的Visual Studio 2010工具箱中选择项目...'为GMap.NET.WindowsForms.dll包含在下载的ZIP压缩文件。我还添加了我的解决方案,以GMap.NET.Core.dll和System.Data.SQLite.dll引用。

I added the control to my Visual Studio's 2010 toolbox by clicking 'Choose Items...' from the toolbox's context menu and browsing for the GMap.NET.WindowsForms.dll included in the downloaded zip archive. I also added references to GMap.NET.Core.dll and System.Data.SQLite.dll in my solution.

然后我把出现在工具箱上GMapControl我的应用程序的主要形式,并设置地图类型GoogleMap的。当我运行我的应用程序,但是,控制显示或者蓝屏一段文字说的很抱歉,但我们并不在这个缩放级别这个区域有图像或明亮的屏幕,完全没有数据( 。当我改变缩放级别)

Then I put the GMapControl that appeared in the toolbox on the main form of my application and set the map type to GoogleMap. When I run my application, however, the control shows either a blue screen with a piece of text saying "We are sorry, but we don't have imagery at this zoom level for this region" or a bright screen with completely no data (when I change zoom level).

下面是我的代码:

  GMapMain.MapType = MapType.GoogleMap;
  GMapMain.MaxZoom = 100;
  GMapMain.MinZoom = 0;
  GMapMain.Zoom = 50;
  GMapMain.CurrentPosition = new PointLatLng(54.6961334816182, 25.2985095977783);

  GMapMain.ReloadMap();      

请帮忙。我不知道该怎么办,我无法找到在互联网上,可以帮助我解决这个问题的任何信息。

Please help. I have no idea what to do and I cannot find any information in the Internet that could help me solve the problem.

非常感谢你在前进。

推荐答案

尝试实例模式设置为服务器只

try setting the instance mode to server only

GMap.NET.GMaps。 Instance.Mode = GMap.NET.AccessMode.ServerOnly

GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerOnly

这篇关于GMap.NET没有显示出地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆