I’ve got an app that incorporates google maps. I call in the library with:
It ran OK for a year or so then one day raised a script error. I found this was because the version number was out-of-date, so I increased it to the current version. Then about a year later it happened again.
This time I changed it to ‘v=quarterly’ which I was told would always use a current stable version.
Today it’s crashed again with the script error. Can anyone tell me how to always invoke a current and stable version of the API?
I would suggest updating the other parameters you’re sending. Google Maps API currently requires 2 URL Params:
An example of a valid API call would be
<script async src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"> </script>
The version key is not required, and would default to
weekly, but if you specify
v=quarterly it will only use larger, less frequent updates.
Also, the sensor parameter is no longer used and is recommended you should remove it.
Answered By – Barry Piccinni