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 has been archived by the owner on Mar 28, 2022. It is now read-only.
on my map I need to show static Labels on my markers. These markers are moving every 20 seconds by the L.Marker.setLatLng(LatLng) method, but the static label stays in place.
In addition to that, if I remove that marker from the map (removeLayer(myMarker)), the label is still there.
I have found a workaround which seems to be very complicated:
The reason this is happening is because the Label has no idea when the marker has moved or been removed. L.Popup (in Leaflet core) has similar requirements.
I'll submit a fix to Leaflet core and when it is merged I'll update Leaflet.label.
This change is dependent on Leaflet master. Draggable makers currently do not update the label position. I'll submit a fix to Leaflet core which will fix this issue.
Hello,
on my map I need to show static Labels on my markers. These markers are moving every 20 seconds by the L.Marker.setLatLng(LatLng) method, but the static label stays in place.
In addition to that, if I remove that marker from the map (removeLayer(myMarker)), the label is still there.
I have found a workaround which seems to be very complicated:
The text was updated successfully, but these errors were encountered: