Explorar o código

Add API Key on Google Maps

Amauri CHAMPEAUX %!s(int64=7) %!d(string=hai) anos
pai
achega
50dff7d2df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tarteaucitron.services.js

+ 1 - 1
tarteaucitron.services.js

@@ -855,7 +855,7 @@ tarteaucitron.services.googlemaps = {
             uniqIds = [],
             uniqIds = [],
             i;
             i;
         
         
-        tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&callback=tac_googlemaps_callback');
+        tarteaucitron.addScript('//maps.googleapis.com/maps/api/js?key=' + tarteaucitron.user.googlemapsKey + '&callback=tac_googlemaps_callback');
         
         
         window.tac_googlemaps_callback = function () {
         window.tac_googlemaps_callback = function () {
             tarteaucitron.fallback(['googlemaps-canvas'], function (x) {
             tarteaucitron.fallback(['googlemaps-canvas'], function (x) {