I display a marker on a map with a popup window in which an image is displayed with a hyperlink.
When the mouse in on the tip, an hand is displayed (why ?) and if I click then the popup is closed !?
I added in my css the disable of the events on the tip but that seems to not be the solution.
var options = {
'className': 'custom-popup'
}
popup = "<a href='" + (BASE_URL || '') + m.link + "'>" + "<img src='" + (BASE_URL || '') + m.image + "' /></a>";
marker.bindPopup(popup,options).openPopup();
The css custom-popup supersedes the leaflet.css:
.custom-popup div.leaflet-popup-content {
min-Width: 300px;
max-Width: 300px;
max-Height: 500px;
}
.custom-popup .leaflet-popup-content-wrapper {
background:#2c3e50;
color:#fff;
font-size:16px;
line-height:24px;
}
.custom-popup .leaflet-popup-tip-container {
width:40px;
height:20px;
pointer-events: none;
}
.custom-popup .leaflet-popup-tip {
background:#2c3e50;
}