Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Maps API Key warning #57

Closed
shua123 opened this issue May 11, 2016 · 3 comments
Closed

Maps API Key warning #57

shua123 opened this issue May 11, 2016 · 3 comments

Comments

@shua123
Copy link
Contributor

shua123 commented May 11, 2016

Google Maps API now returns a warning if you don't include the API key in the Maps API script call. At the moment it does not affect functionality.

Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
image

Reference links:
https://developers.google.com/maps/documentation/javascript/get-api-key
http://stackoverflow.com/questions/35890582/google-maps-api-warning-noapikeys

@derekeder
Copy link
Owner

Thanks @shua123. We have API keys as a requirement of using this template. Do you think this change on Google's end will require any changes to the template?

@shua123
Copy link
Contributor Author

shua123 commented Jun 2, 2016

So the change in the template would be to include the API key in this line: https://github.com/derekeder/FusionTable-Map-Template/blob/master/index.html#L109

similar to the example here:
<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" type="text/javascript"></script>

@derekeder
Copy link
Owner

ok readme updated. kind of annoying you have to set it right in the script tag, but it looks like the only way to do it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants