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

How to set a Google API key when using the API? #1996

Closed
Gnafu opened this issue Jun 29, 2017 · 2 comments
Closed

How to set a Google API key when using the API? #1996

Gnafu opened this issue Jun 29, 2017 · 2 comments

Comments

@Gnafu
Copy link
Contributor

Gnafu commented Jun 29, 2017

I created a map and generated the html to use the MapStore2 API.
After the deploy the Google background shows an error because it misses the Google Maps API key.

How can I give MapStore2 my Google Maps API key to make it work?

@offtherailz
Copy link
Member

You should pass it when you include the script in the script tag, isn't it?
<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">

@tdipisa tdipisa added this to the 2017.04.00 (Editing) milestone Jun 30, 2017
@Gnafu
Copy link
Contributor Author

Gnafu commented Jun 30, 2017

Correct, I'll add it to the documentation

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

No branches or pull requests

3 participants