represent-map icon indicating copy to clipboard operation
represent-map copied to clipboard

Issue with Google API - MissingKeyMapError

Open vgoetten opened this issue 9 years ago • 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

vgoetten avatar Jun 25 '16 00:06 vgoetten

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

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

Thanks :)

amauryleproux avatar Feb 05 '17 13:02 amauryleproux

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

amauryleproux avatar Feb 05 '17 14:02 amauryleproux