Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:
VB
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:
VB
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
Posted
Updated 18-Oct-13 10:35am
v4

1 solution

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900