Skip to content
Snippets Groups Projects
Commit d283f548 authored by Prasad's avatar Prasad
Browse files

Fixes #931: Added placeholder to inject Google maps API Key

parent 541e9b68
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment