// * // * 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.5726,19.1193), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(49.031758625597,21.0429405793548), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.0774259589595,19.0304374236571), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.1649997308157,18.8808105513453), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.8517791411379,21.7687131464481), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.294383,17.751577), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.5144467977807,19.1256596893072), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.7234531572713,19.1087390361161), draggable: false, // Set draggable option as true map: map }); } google.maps.event.addDomListener(window, 'load', initialize);