February 22, 201016 yr Hi, I'm including a google map in to a site. Absolutely a piece of cake except the friggin API key! I generate the API key, cut and paste the javascript in to the head of the page but when I publish the page I get the following message: "This web site needs a different Google maps API key. A new key can be generated at . . .etc" I've created 3 new keys and still get the same message. Anyone come across this before? I've checked within google forums but I can't find a conclusive answer. Jo
February 22, 201016 yr Are you using the API key on the specified domain. Also it will not work locally (xampp/wamp etc) which is a huge pain in the ASS!
February 22, 201016 yr Author When you say the "specified domain" I think so. I'm putting the key in the head of the page with the map on it. Surely that makes sense. So, the domain is www.pawrs.com and the page with the map is http://www.pawrs.com/recycling_show_location.html So the last url is the domain I used. Isn't that right? Thanks.
February 22, 201016 yr There appears to be two scripts relating to google maps however the encoded key is different in both. edited the key needs to relate to your main domain www.pawrs.com
February 23, 201016 yr Author Yeah it is working now thanks. I did it by not including an api key at!!!? Will I be shot at dawn by google . . . . . ..
Create an account or sign in to comment