Ok, so I have a huge mapping project using leaflet and I've got the following overrides:
//set defaults for popups
L.Popup.options = {
autoClose: false,
closeButon: false
};
According to the documentation, this should prevent the popups from closing when I open one. Why are all the popups still closing when I click the map?
Best Answer
I am not sure how you tested this, but if you created a single instance of a Popup and then added the same one on your map then it only changed the position of it, not creating a new one on the map. You will need to create 3 different popups for 3 different markers in order to keep them opened.
Here is the example of the code that does what you want (leaflet version 1.0.0-rc3):
And a jsFiddle that demonstrates this: