Leaflet does not initialise properly and flickers #4061
Closed
Description
Description
I have an issue with leaflet maps. I have an app where I want to select and display an GPS track. When the track is selected I move the view to the track with "flyToBounds" (or "fitBounds", which shows the same effect) and quite often the map flickers after moving to the specified area and only the track is visible but not the map.
The same effect appears on the nicegui example for "Wait for Initialization"... see the screen capture. The first reload works properly but the second does not:
Nicegui.Leaflet.mp4
There was a bugfix in release 1.4.26 ("Prevent ui.leaflet
from flickering...") which I suppose should have fixed the issue, but it is still occurring (particularly prevalent on Safari on iPad).