JavaScript
window.onload = function () {
var apiKey = getApiKey();
//initialization of sygic maps
var map = L.map("map");
map.setView([48.146864, 17.105868], 13);
var sygicTileLayer = L.TileLayer.sygic(apiKey);
L.layerGroup([sygicTileLayer]).addTo(map);
var exampleInput = {
coordinates: ["48.29444,17.50047", "48.2948,17.50143", "48.29651,17.50641", "48.29778,17.51044", "48.29824,17.51192", "48.29998,17.51851", "48.30058,17.52107", "48.30113,17.52365", "48.30165,17.52623", "48.30253,17.53132", "48.30324,17.53587", "48.3037,17.53847", "48.30477,17.54425", "48.30529,17.54675", "48.30617,17.55101", "48.30677,17.55376", "48.3073,17.55603", "48.30784,17.55828", "48.30852,17.56094", "48.30887,17.56225", "48.30979,17.56573", "48.3113,17.57103", "48.31143,17.57149", "48.3127,17.57562", "48.31372,17.57878", "48.31435,17.58068", "48.31528,17.58346", "48.31562,17.5844", "48.3176,17.58991", "48.31776,17.59036", "48.32052,17.5973", "48.32109,17.59866", "48.32129,17.5991", "48.32168,17.6", "48.32857,17.61457", "48.32865,17.61513", "48.33372,17.62408", "48.33482,17.62599", "48.3359,17.62788", "48.33703,17.62978", "48.33821,17.63167", "48.33921,17.63333", "48.34063,17.63566", "48.34155,17.63726", "48.34288,17.63961", "48.34402,17.64164", "48.34514,17.64361", "48.34621,17.64553", "48.34728,17.6476", "48.34834,17.6496", "48.34941,17.65161", "48.3504,17.65378", "48.35138,17.65588", "48.35219,17.65763", "48.35336,17.66058", "48.35499,17.66512", "48.35588,17.66778", "48.35672,17.67042", "48.35736,17.67251", "48.35828,17.67566", "48.35915,17.67878", "48.35976,17.68126", "48.36035,17.68379", "48.36081,17.6858", "48.36141,17.68836", "48.3621,17.6914", "48.36257,17.69344", "48.36332,17.69646", "48.3638,17.69845", "48.36442,17.7009", "48.36511,17.70339", "48.36594,17.70634", "48.36671,17.70876", "48.36739,17.71076", "48.36825,17.71316", "48.36917,17.7155", "48.37017,17.71781", "48.37127,17.72009", "48.37355,17.72432", "48.37379,17.72475", "48.37506,17.72678",...