Updated How to setup API services through Google Console (markdown)

cliff smits
2016-09-14 08:36:23 +02:00
parent 6e7c859ed5
commit a54352828a

@@ -37,18 +37,22 @@ first open up the POGOserver/cfg.js i Preffer with Notepad ++ and scrol down whe
And press save.
than open up into API/js/init.js and search for
than open up into API/cfg.js and search for
loadScriptDefered("http://maps.google.com/maps/api/js?key=" + CFG.GMAPS.API_KEY);
loadScriptDefered("js/gmaps.js");
loadScriptDefered("js/ajax.js");
loadScriptDefered("js/main.js");
var CFG = {
API: {
HOST: "127.0.0.1",
PORT: 3000,
ROUTE: "/api"
},
GMAPS: {
API_KEY: "XXXXX", Enter API Key Here
BASE_ZOOM: 20,
BASE_LAT: 39.18875480450959,
BASE_LNG: -96.58109955489635
}
};
you need to place You're Api KEY Behind /maps/api/js?key=.
example
loadScriptDefered("http://maps.google.com/maps/api/js?key=Place here You're Api Key" + CFG.GMAPS.API_KEY);
And press save.
When everything has been edited, go to You're internet Browser and go to localhost.