Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Maps JavaScript API warning: NoApiKeys #131

Open
peterszaszlateral opened this issue Oct 17, 2018 · 3 comments
Open

Google Maps JavaScript API warning: NoApiKeys #131

peterszaszlateral opened this issue Oct 17, 2018 · 3 comments

Comments

@peterszaszlateral
Copy link

Hi,

For some reason I can't get to make the JavaScript Google maps to work.

I created a totally new account in Google Cloud Console and created all the necessary setup including the billing system.

For some reason the Web Maps are still throwing this Google Maps JavaScript API warning: NoApiKeys exception and the map is showing up with a dark grey overlay on top of it, stating that the maps is only for Development Purposes.

I am using the sample app and I am getting these same results.

@nwadams
Copy link
Contributor

nwadams commented Oct 28, 2018

Google likely changed their policies on google maps API. and you likely need to add the API key to the js. https://developers.google.com/maps/documentation/javascript/get-api-key. and set it as a key param in

<script src="MAPURL?v=3.exp&sensor=false&language=LANGTOKEN&region=REGIONTOKEN"></script>
.

There is probably a way to inject the key so you wouldn't need to modify the library.

@dneykov
Copy link

dneykov commented Jan 18, 2019

Did anyone manage to set api key to the web view map?

@dneykov
Copy link

dneykov commented Jan 18, 2019

I manage to se api key without modifying the library. Just create assets folder in your app and copy google_map.html and include api key in script tag.

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

No branches or pull requests

3 participants