Reputation: 307
I am trying to use google maps api on my site. I am adding the following url as my script source http://maps.googleapis.com/maps/api/js?key=AIzaSyD4RDCq5jqjyooPAQM3MDPTWFR1LDq1N6s&sensor=true. And when I load the page I get the following error.
I checked my google aps console and the google api is turned on
I am not sure why I am getting this error. My website url is sporkstick.com.
Upvotes: 0
Views: 240
Reputation: 5112
Do you have a link to a live demo? Without that, I can only guess that the referrer (i.e. the site that you're putting a map on) does not match the restrictions on referrers you've set up in the API console.
-
You're using the V2 API. Definitely start by loading the V3 Maps API. The V2 API is deprecated. If you look at your console, you've only activated the V3 API for that key, not the V2 API.
Upvotes: 1
Reputation: 2454
use this:
src="http://maps.google.com/maps/api/js?sensor=false"
keys are not necessary in v3
Upvotes: 2