diff --git a/pkg/vtiger/modules/Google/layouts/v7/modules/Google/resources/Map.js b/pkg/vtiger/modules/Google/layouts/v7/modules/Google/resources/Map.js index a2a98d74ebac2b633568efe725c082b1b3541818..9419061e0f5a4650e01cf422feb3b8791815120f 100644 --- a/pkg/vtiger/modules/Google/layouts/v7/modules/Google/resources/Map.js +++ b/pkg/vtiger/modules/Google/layouts/v7/modules/Google/resources/Map.js @@ -41,7 +41,11 @@ Vtiger.Class("Google_Map_Js", {}, { }, loadMapScript : function() { - jQuery.getScript("https://maps.google.com/maps/api/js?sensor=true&async=2&callback=initialize", function () {}); + var API_KEY = 'YOUR_MAP_API_KEY'; // CONFIGURE THIS + + if (API_KEY == 'YOUR_MAP_API_KEY' && typeof console) console.error("Google Map API Key not configured."); + + jQuery.getScript("https://maps.google.com/maps/api/js?key=" + API_KEY + "&sensor=true&async=2&callback=initialize", function () {}); }, getQueryString : function (address) { @@ -81,4 +85,4 @@ function initialize(){ } }); } -} \ No newline at end of file +}