Google maps API key error in any directory other than a certain -


this question has answer here:

i use mamp

site in directory - localhost/mysite

when have error in console:

"google maps api error: missingkeymaperror "

i go google api console, make new project, create new api key, insert key in site:

<script src="https://maps.googleapis.com/maps/api/js?key=my-key" type="text/javascript"></script> 

but error not go away

i tried bunch of options create different keys activate different service api, making keys browser

error on map "oops, went wrong.." , "missing-key-map-error" not go away

upd

if move site directory

localhost/mysite2/

then works expected without api key!

where api checks directory of work , not?

as per google recent announcement, http://googlegeodevelopers.blogspot.com.au/2016/06/building-for-scale-updates-to-google.html usage of google maps apis requires key. if using google maps api on localhost or domain not active prior june 22nd, 2016, require key going forward. please see google maps apis documentation key , add application.

for more detail

https://developers.google.com/maps/documentation/javascript/get-api-key

error: google maps api error: missingkeymaperror


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -