Yan
Yan

Reputation: 3

I need API URL of GMapProviders.GoogleMap

I use the gmap.net library for my WinForms application and connection through the proxy.

Here is the code:

        mapCtrl.MapProvider = GMap.NET.MapProviders.GMapProviders.GoogleMap;
        GMaps.Instance.Mode = AccessMode.ServerOnly;
        GMap.NET.MapProviders.GMapProvider.WebProxy =
        System.Net.WebRequest.GetSystemWebProxy();
        GMap.NET.MapProviders.GMapProvider.WebProxy.Credentials =
        System.Net.CredentialCache.DefaultCredentials;

The problem is that the information security department of my company is blocking these connections and as result, the maps tiles don't load. They ask me to give them the API URL for entering it into the white list. Somebody knows which URL uses Gmap.net for GMapProviders.GoogleMap?

Upvotes: 0

Views: 486

Answers (1)

Yan
Yan

Reputation: 3

From Martin Costello's comment

Use a tool like WireShark or Fiddler on your local machine and see what URLs the application tries to access over the network.

Using Fiddler helped me.

Upvotes: 0

Related Questions