DDanser,
<!DOCTYPE html>
<html>
<head>
<title>Sample Map</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<script src="http://maps.google.com/maps/api/js"> </script>
<script>
function e() {
var centerLatLng = { lat: 41.881576, lng: 12.495232 };
var e = document.getElementById("map"),
t = {
center: centerLatLng,
zoom: 10,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(e, t);
google.maps.event.addListener(map, "click", function (ev) {
var location = ev.latLng;
marker = new google.maps.Marker({
position: location,
map: map,
title: 'Новый маркер'
});
marker.setMap(map);
});
};
google.maps.event.addDomListener(window, 'load', e);
</script>
</head>
<body>
<div id="map" style="width: 600px; height: 400px;">
</div>
</body>
</html>