var locations = [{"lat":"50.4194689","lng":"15.8084192","note":null},{"lat":"50.0297317","lng":"14.4093583","note":null},{"lat":"50.0470697","lng":"15.8088453","note":null},{"lat":"50.1892478","lng":"15.8495978","note":null},{"lat":"50.3590619","lng":"13.8098689","note":null},{"lat":"50.6610275","lng":"13.8505494","note":null},{"lat":"49.0029117","lng":"14.4518533","note":null},{"lat":"49.3028794","lng":"14.1369525","note":null},{"lat":"49.1396867","lng":"16.6024233","note":null},{"lat":"49.0215394","lng":"17.6342147","note":null},{"lat":"49.3240361","lng":"17.5709911","note":null},{"lat":"48.8732039","lng":"17.1155203","note":null},{"lat":"49.8535494","lng":"18.3023300","note":null},{"lat":"49.7232836","lng":"13.4116397","note":null},{"lat":"50.2265642","lng":"12.8174911","note":null},{"lat":"49.5574403","lng":"17.7354581","note":null},{"lat":"49.5751342","lng":"17.2682747","note":null},{"lat":"49.9442961","lng":"17.8986358","note":null},{"lat":"50.4471136","lng":"14.9634342","note":null},{"lat":"50.7434550","lng":"15.0480706","note":null},{"lat":"49.5698906","lng":"14.5365217","note":null},{"lat":"48.8311128","lng":"16.0711086","note":null},{"lat":"49.4058583","lng":"15.5942628","note":null},{"lat":"49.9549569","lng":"16.9657400","note":null},{"lat":"49.3391000","lng":"16.5517000","note":null},{"lat":"49.0101769","lng":"17.1225278","note":null},{"lat":"48.7589686","lng":"16.8820300","note":null},{"lat":"48.9926500","lng":"21.2436400","note":null},{"lat":"48.8948200","lng":"18.0386400","note":null},{"lat":"48.7372500","lng":"19.1418200","note":null},{"lat":"49.6853661","lng":"18.3483767","note":"Fr\u00fddek-M\u00edstek"},{"lat":"49.5934136","lng":"18.0090997","note":"Nov\u00fd Ji\u010d\u00edn"},{"lat":"49.7798447","lng":"18.4368797","note":"Hav\u00ed\u0159ov"},{"lat":"49.9884447","lng":"17.4647019","note":"Brunt\u00e1l"},{"lat":"49.4718053","lng":"17.9711272","note":"Vala\u0161sk\u00e9 Mezi\u0159\u00ed\u010d\u00ed"},{"lat":"49.4144125","lng":"14.6578033","note":"T\u00e1bor"}]; var map = null; function initialize() { var myLatlng = new google.maps.LatLng(49.735794, 15.5015115); var mapOptions = { zoom: 7, center: myLatlng } map = new google.maps.Map(document.getElementById('map'), mapOptions); drawMarkers(); } function drawMarkers() { var pin = { url: 'https://www.lokatory.cz/img/ui/spendlik.png', size: new google.maps.Size(16, 28), origin: new google.maps.Point(0,0), anchor: new google.maps.Point(8,28) }; for ( var index in locations) { var latlong = new google.maps.LatLng(locations[index].lat, locations[index].lng); var marker = new google.maps.Marker({ position: latlong, map: map, title: locations[index].note, icon: pin }); } } google.maps.event.addDomListener(window, 'load', initialize);