Преглед изворни кода

Add API Key on Google Maps

Amauri CHAMPEAUX пре 7 година
родитељ
комит
50dff7d2df
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tarteaucitron.services.js

+ 1 - 1
tarteaucitron.services.js

@@ -855,7 +855,7 @@ tarteaucitron.services.googlemaps = {
             uniqIds = [],
             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 () {
             tarteaucitron.fallback(['googlemaps-canvas'], function (x) {