$('.icon1').click(function(event){
$('.map').click(function(event){
console.log("from icon1");
});
});
$('.icon2').click(function(event){
$('.map').click(function(event){
console.log("from icon2");
});
});