Proxy Settings not automatically set


When using GMap.NET with a system proxy, it does not work out of the box. The proxy need to be configured this way:

GMapProvider.WebProxy = WebRequest.GetSystemWebProxy();
GMapProvider.WebProxy.Credentials = CredentialCache.DefaultNetworkCredentials;

Typical C# classes like WebClient and WebRequest automatically set the proxy settings based on the system settings with no additional code required. Wether you use a proxy or not, these lines will fill the correct information. If should be the default settings for GMap too instead of a forced "EmptyProxy" class.