abenzer/represent-map

Issue with Google API - MissingKeyMapError

Opened this issue · 2 comments

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

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

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

Thanks :)

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 :

  • Google Maps Geocoding API
  • Google Maps JavaScript API

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

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

Cheers