Close dialog if map is clicked