Skip to content

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

Open
dumityty wants to merge 1 commit intojamesallison:masterfrom
dumityty:fix-map-bug
Open

use new google maps api url and allow specifying the gmaps api key#3
dumityty wants to merge 1 commit intojamesallison:masterfrom
dumityty:fix-map-bug

Conversation

@dumityty
Copy link
Copy Markdown

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