You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you manually create a Popup with myPopup = new L.Popup() it's impossible to close it with the close button at the top right. Using myMap.removeLayer(myPopup) does seem to work though.
The close button calls the closePopup() function on the map that it's attached so, but that function only closes the popup that's only that has been opened through map.openPopup(). Perhaps the close button should be able to remove itself without having to use the map's closePopup function or not have it show up at all if it were attached to the map through the addLayer function.
If you manually create a Popup with
myPopup = new L.Popup()
it's impossible to close it with the close button at the top right. UsingmyMap.removeLayer(myPopup)
does seem to work though.I made a quick example to show what's happening.
The text was updated successfully, but these errors were encountered: