// * // * 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.291317,17.265743), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4633390806126,18.905333536511), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.578304,19.166031), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.612453,18.848412), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.481794,17.401616), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.464977,17.496986), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(49.407458,18.072340), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(49.445246,18.786940), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(49.432694,18.774603), draggable: false, // Set draggable option as true map: map }); } google.maps.event.addDomListener(window, 'load', initialize);