Welcome, Guest
Username: Password: Remember me

TOPIC: Google Maps api needs to be update to v3

Google Maps api needs to be update to v3 5 years 6 months ago #7287

  • Rakesh
  • Rakesh's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 67
  • Thank you received: 2
  • Karma: 0
The default.php within the tmpl folder needs to be updated to api v3 of Google Maps.

Change
&callback=initMap
to
&language=nl
at line 34
Add your own language code, mine is 'nl'

Result:
<script async defer src="https://maps.googleapis.com/maps/api/js?key=<?php echo trim($params->get('googleapikey'))?>&language=nl" type="text/javascript"></script>


Also sensor is no longer supported, but that should not give any problem if it works well:
<script src="https://maps.googleapis.com/maps/api/js?sensor=false&ver=1.0" type="text/javascript"></script>




You might need to update your API at cloud.google.com/maps-platform/
and add a billing program in order to get it to work again.
Last Edit: 5 years 6 months ago by Rakesh.
The administrator has disabled public write access.

Google Maps api needs to be update to v3 5 years 6 months ago #7295

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi
Thank for your information!. Yes, I will update map for module
Best regards
Bach Pham
The administrator has disabled public write access.
Time to create page: 0.049 seconds