Hello Everyone,
I hope you are doing well.
Could you please advise me to the following issue I am facing.
I am using in c# CMapControl and when I want to assign NearMap or YahooMap as map provider, it returns me: 'Exception: The remote server returned an error: (401).
When I assign:
map.MapProvider = GMapProviders.GoogleMap
, the map is rendered correctly. I wonder if the issue is not related to an authorization token ?
Do you think this is the case ? Do you know if these providers are still active ?
Maybe I should not allow them in the map selection list I have managed as follow:
private static Dictionary<string, GMapProvider> Maps = new Dictionary<string, GMapProvider>()
{
{"Google" ,GMapProviders.GoogleMap},
{"Bing" ,GMapProviders.BingMap},
{"Yahoo" ,GMapProviders.YahooMap},
{"Yandex" ,GMapProviders.YandexMap},
{"Near" ,GMapProviders.NearMap},
{"OpenCycle" ,GMapProviders.OpenCycleMap},
{"OpenStreet" ,GMapProviders.OpenStreetMap}
};
What is your view on this issue ? Any inputs are very welcome.
Thank you very much in advance.
I wish you a splendid sunny time.
Best regards.
MiQi
What I have tried:
I have tried to set in comment the zoom limit values and also some cache flags but the issue remains the same, no yahoo or near maps are drawn.
map.MapProvider = GMapProviders.NearMap;
map.Position = new PointLatLng(54.6961334816182, 25.2985095977783);
map.Zoom = 9;
GMaps.Instance.UseMemoryCache = false;
GMaps.Instance.CacheOnIdleRead = false;
GMaps.Instance.BoostCacheEngine = true;