Hi, I have tried to insert the leaftmap block on a mobile screen, ma it doesn't seem to work:
That's the result :
Hello
You can reply with:
This usually happens when the Leaflet Map is rendered inside a container without a fixed/visible height during initialization. Try these checks: Give the parent Container a fixed height (Height: 100vh or explicit px value). Avoid rendering the map inside hidden tabs/containers on screen load. Trigger a map refresh after screen rendering (InvalidateMap / redraw). Check if any parent container uses display:flex without proper height propagation. On Mobile Apps, test on device — preview/emulator sometimes renders Leaflet incorrectly. Also verify: Leaflet CSS/JS dependencies are loaded correctly. No overflow/position CSS from Silk/UI custom theme is clipping the map.
This is a common Leaflet rendering behavior in OutSystems when the map initializes before the container gets its final dimensions.hope this will helps you.Thanks and Regards,Akshay Deshpande
Hi, thank you for your feedback. Here are the answers to your points:
You said that : "This is a common Leaflet rendering behavior in OutSystems when the map initializes before the container gets its final dimensions."
this is a good point. I've solved the problem by putting the map inside a If block and loading the map only after the data has fetched:
I hope this helps