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

use new google maps api url and allow specifying the gmaps api key #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dumityty
Copy link

First of all, thanks for the great php dashboard!
When I first setup mondoweb the map wouldn't load (would get some default grey map tiles) and there were errors in the console about not having the google maps api key set.

After doing a bit of digging the map started working again as soon as I changed the url to the new maps.googleapis.com url.
I have also created a google maps api key and the errors about 'NoApiKeys' has disappeared. While the key is not mandatory, Google recommends setting it. I have added an extra variable in settings.php for it.
A key can be created here: https://developers.google.com/maps/documentation/javascript/get-api-key

I also removed 'sensor=true' from the url as that is not supported any more and it throws a warning in console:
Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required

I've only just started contributing back to projects, so I'm practicing with smaller commits :)

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

Successfully merging this pull request may close these issues.

1 participant