GMap.Net问题与地图 [英] GMap.Net Problem With map

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

问题描述

Hello Friends,



我在VB.NET桌面应用程序中使用Great Maps Gmap.Net,但问题是我无法使用Google卫星地图提供者。它给出了一个错误

异常远程服务器返回错误

所有其他地图提供程序工作正常,但我无法解决这个问题而且不知道为什么。



这是我的代码:

 使用 gmaps 
.Position = PointLatLng( 22 63 71 58
' .MapType = MapType.BingMap
.MinZoom = 3
.MaxZoom = 17
.Zoom = 8
.Manager.Mode = AccessMode.ServerAndCache
.CanDragMap = True
GMap.NET.MapProviders.GoogleSatelliteMapProvider.In stance.APIKey = 我的API密钥
.MapProvider = GMap.NET.MapProviders。 GoogleMapProvider.Instance
.DragButton = Windows.Forms.MouseButtons.Left
结束 使用



这样可以正常使用,但问题是:

 使用 gmaps 
.Position = PointLatLng( 22 63 71 58
< span class =code-comment>' .MapType = MapType.BingMap
.MinZoom = 3
.MaxZoom = 17
.Zoom = 8
.Manager.Mod e = AccessMode.ServerAndCache
.CanDragMap = True
GMap.NET.MapProviders.GoogleSatelliteMapProvider.Instance.APIKey = 我的API密钥
.MapProvider = GMap.NET.MapProviders.GoogleSatelliteMapProvider.Instance
.DragButton = Windows .Forms.MouseButtons.Left
结束 使用

解决方案

如何询问您的问题,您将找到所使用的库的最大用户数,例如 here [ ^ ]。

Hello Friends,

I am using Great Maps Gmap.Net in my desktop application in VB.NET, but the problem is I can't use Google satellite map provider. It gives an error

Exception The remote Server Returned an Error

All other map provider work fine, but I cannot solve this issues and don't know why.

Here is my code:

With gmaps
            .Position = New PointLatLng(22.63, 71.58)
            '.MapType = MapType.BingMap
            .MinZoom = 3
            .MaxZoom = 17
            .Zoom = 8
            .Manager.Mode = AccessMode.ServerAndCache
            .CanDragMap = True
            GMap.NET.MapProviders.GoogleSatelliteMapProvider.Instance.APIKey = "My API Key"
            .MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance
            .DragButton = Windows.Forms.MouseButtons.Left
End With


This works fine, but here's the problem:

With gmaps
            .Position = New PointLatLng(22.63, 71.58)
            '.MapType = MapType.BingMap
            .MinZoom = 3
            .MaxZoom = 17
            .Zoom = 8
            .Manager.Mode = AccessMode.ServerAndCache
            .CanDragMap = True
            GMap.NET.MapProviders.GoogleSatelliteMapProvider.Instance.APIKey = "My API Key"
            .MapProvider = GMap.NET.MapProviders.GoogleSatelliteMapProvider.Instance
            .DragButton = Windows.Forms.MouseButtons.Left
End With

解决方案

How about asking your question where you will find the highest number of users for the library you're using, like here[^].


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

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