function onMapClick(e) {
    alert("You clicked the map at " + e.latlng);
    }

mymap.on('click', onMapClick);