dburles / meteor-google-maps

🗺 Meteor package for the Google Maps Javascript API v3
https://atmospherejs.com/dburles/google-maps
MIT License
196 stars 49 forks source link

"Unable to display a Google Maps element" in iOs #115

Closed lpender closed 8 years ago

lpender commented 8 years ago

I get the following error in iOs when I input my Google Maps API Key:

"This page was unable to display a Google Maps Element. Please contnact the site administrator. If you are the administrator of this site, please check the JavaScript console or check the following page for troubleshooting: http://g.co/mapsJSApiErrors'

I fixed this issue in Chrome by adding my domain to the domain whitelist in the Google API Manager.

I tried adding the following addresses to no avail:

*.mywebsite.com
meteor.local

Thoughts?

dburles commented 8 years ago

Hey @lpender does this help? https://github.com/dburles/meteor-google-maps#mobile-platforms

lpender commented 8 years ago

Hey,

I'm afraid not. The whitelist issue is in the other direction--I have to enter a domain whitelist into the Google Developer interface.

I have to whitelist whatever domain iOs is running the app from--I just can't figure out what that might be...

Thanks!

lpender commented 8 years ago

Got it, I had to add myapp.herokuapp.com to the google whitelist. Apparently that's where the request was coming from.

lpender commented 8 years ago

In development, this url appears to be localhost:12000 (at least for me)

lpender commented 8 years ago

Add the result of this to your google API whitelist dig myapp.com cname +short