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
{{ message }}
This repository was archived by the owner on Sep 20, 2019. It is now read-only.
When I update the icon of a (div) marker as follows:
_marker.icon.html = "some html";
The popup, if open, closes.
This makes the popup unusable if the icon changes every few seconds.
I've tracked the problem down to the following code on line 2361 of ui-leaflet.js:
marker.closePopup();
marker.unbindPopup();
if (isString(markerData.message)) {
marker.bindPopup(markerData.message, markerData.popupOptions);
// if marker has been already focused, reopen popup
if (map.hasLayer(marker) && markerData.focus === true) {
marker.openPopup();
}
}
When I comment this code the popup stays open when changing the icon.
Is there any way to prevent the popup from closing?
If not, I propose to add some kind of flag to the marker defining if the popup should close on icon
change.
Something like:
Hi,
When I update the icon of a (div) marker as follows:
The popup, if open, closes.
This makes the popup unusable if the icon changes every few seconds.
I've tracked the problem down to the following code on line 2361 of ui-leaflet.js:
When I comment this code the popup stays open when changing the icon.
Is there any way to prevent the popup from closing?
If not, I propose to add some kind of flag to the marker defining if the popup should close on icon
change.
Something like:
or
Thanks!
The text was updated successfully, but these errors were encountered: