我在 winforms 应用程序中使用 GMap.NET 但是当我使用 Googlesatellite 地图提供程序时出现错误,异常:远程服务器返回错误:(404)未找到,其他地图提供程序工作正常,只是“GoogleSatelliteMapProvider”的问题,
这是我的代码
With gmaps
.Position = New PointLatLng(22.63, 71.58)
.MinZoom = 3
.MaxZoom = 17
.Zoom = 8
.Manager.Mode = AccessMode.ServerAndCache
.CanDragMap = True
GMap.NET.MapProviders.GoogleSatelliteMapProvider.Instance.APIKey = "MyApiKey"
.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance
.DragButton = Windows.Forms.MouseButtons.Left
.MouseWheelZoomType = GMap.NET.MouseWheelZoomType.MousePositionAndCenter
End With