// * // * 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.47696383,17.05711605), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4743834901278,17.0654300693796), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4721930598493,17.0696798136616), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4701702675242,17.0786503543443), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4580926059223,17.0952321216728), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.3962811576734,17.0913453561495), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4970882860523,17.0951843339496), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4968502029679,17.0950693502907), draggable: false, // Set draggable option as true map: map }); } google.maps.event.addDomListener(window, 'load', initialize);