// * // * 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.5866,18.8669), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(49.136426,19.475771), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4633466112652,18.9052409484466), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.5746878918678,18.8227988386996), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(49.20277593,18.56062734), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4632751543576,18.9055874659246), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.51103849,18.65044922), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(49.43734001,18.77024259), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.6716798190974,19.0640543844186), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.544144,18.809848), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.4618666162714,18.912116708234), draggable: false, // Set draggable option as true map: map }); marker = new google.maps.Marker({ position: new google.maps.LatLng(48.5863299354215,18.8670143394417), draggable: false, // Set draggable option as true map: map }); } google.maps.event.addDomListener(window, 'load', initialize);