Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

New Post: Can we use our google key to connect to google maps from windows forms using gMap.net?

$
0
0
Hi,

Thanks for the reply. I would like to be able to use our key. Right now I am using it as following:

GoogleMapProvider.Instance.RefererUrl = "http://maps.googleapis.com/maps/api/";
GoogleMapProvider.Instance.ApiKey = "AIzaSyCrlJAcnDovwExeN0VABCDEFGEtc";

var googleprovider = GoogleMapProvider.Instance;

myMap.MapProvider = googleprovider;
...
Rest of the code

This still works, however if I change the key to some wrong key it will still work. I am not able to validate if it is using my key.

Is this the correct way to use the key?

Many thanks.

Viewing all articles
Browse latest Browse all 3384


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>