abenzer / represent-map

Visualize your startup community on a custom Google map. Based on the code for http://represent.la
http://represent.la
357 stars 189 forks source link

Issue with Google API - MissingKeyMapError #83

Open vgoetten opened 8 years ago

vgoetten commented 8 years ago

Hi guys, my site is www.joinvale.org and an error is occurring when the site tries to load the map:

Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings. js?sensor=false:32 Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error_.ab @ js?sensor=false:32 util.js:211 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys util.js:211 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-requi

amauryleproux commented 7 years ago

Hi @vgoetten do you find a solution to fix this problem?

I get this error : "Google Maps API error: MissingKeyMapError"

Thanks :)

amauryleproux commented 7 years ago

Ok I found a solution. You need to go to https://console.developers.google.com and activate 2 (or more if you need others api) api :

then you need to change the request url in index.php :

https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY

Cheers