I want popup doesn't show itself when I click on Leaflet marker.
I cannot use clickable : false
because I it will make the markers "act as a part of the underlying map" and this is unacceptable for me. I tried the next code
marker.on('click', function(event) {
event.originalEvent.preventDefault();
});
without any results. What is the right way to prevent popup showing without using clickable : false
property of marker object.
Edit 1: All I need is to open all the popus on the map by clicking one custom button, still I don't want popup show itself after I click on the particular marker