Update Google Maps API to use current version, resolve error that prevents rendering maps#26
Update Google Maps API to use current version, resolve error that prevents rendering maps#26SkyLundy wants to merge 1 commit intoryancramerdesign:masterfrom
Conversation
| options: { | ||
| zoom: 12, | ||
| draggable: true, // +mats | ||
| center: null, |
There was a problem hiding this comment.
@SkyLundy
Hi! quick question, i used your code, i also added a mapId attribute over here, but i get a request denied message below my map. any troubleshooting ideas?
There was a problem hiding this comment.
@Phatskool Sorry for the late reply, my first thought is that it's an issue with Google. The request is being made but the only entity that can deny it would be Google.
If I remember there are some settings where you need to define where the map may be used(?). Sorry I can't be of more help at the moment, I'm traveling and can't remember the steps off the top of my head.
There was a problem hiding this comment.
@SkyLundy Much thanks, it appears that geolocation and geocoding are not supported with HTTP referrer restrictions.
Replaced previous Google APIs with current versions. Uses new async method that prevents warnings in inspector console.
Updated maps API to use new method in the Google Maps documentation
Updated marker API according to this guide by Google
All features appear to be working.