Currently i'm working with jquery-ui-map plugin. And i've faced one problem. Is it possible by means of this plugin add an event listener that will add a marker on a map where user clicked on it. After discovering an Api of this plugin i tried this code:
$('#map_canvas')
.gmap()
.addEventListener('click',function(event, test){
//console.log(event);
});
Where #map_canvas is a div element containing my map.
This code really adds an event listener but the variable event don't have a .latLng property. How can i manage to do this?