// * // * Coordinates search // * 2013 - en.marnoto.com // * // Required variables. var map; var marker; function initialize() { var mapOptions = { center: new google.maps.LatLng(48.782667, 19.338321), zoom: 8, mapTypeId: 'roadmap' }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); // This event detects a click on the map. google.maps.event.addListener(map, "click", function(event) { // Get lat lng coordinates. // This method returns the position of the click on the map. var lat = event.latLng.lat().toFixed(6); var lng = event.latLng.lng().toFixed(6); // Call createMarker() function to create a marker on the map. createMarker(lat, lng); // getCoords() function inserts lat and lng values into text boxes. getCoords(lat, lng); }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.5745877342224,18.8232122539055), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.1656881181029,18.8799836028141), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4487215642686,18.9310502184041), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4462032909698,17.0513589969432), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.13375448,17.10928223), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.1496872162001,17.1208950800083), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.1502269,17.1570179), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.1495025914293,17.1520930636879), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.0996888,17.1026228), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(50.4426070401404,23.1112309041552), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(50.3972570208762,23.2397971374787), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(50.605508155169,22.9680171980958), draggable: false, // Set draggable option as true map: map }); } google.maps.event.addDomListener(window, 'load', initialize);