<script type="text/javascript" src="PATH_TO_PLUGIN/jquery.ui.map.services.js"></script>
$('#map_canvas').gmap().bind('init', function(event, map) {
$(map).click( function(event) {
$('#map_canvas').gmap('addMarker', {
'position': event.latLng,
'draggable': true,
'bounds': false
}, function(map, marker) {
marker.__gm_id
});
});
});