Closed Manuel-Materazzo closed 3 months ago
Looks like in the Home Assistant frontend they use this approach (slightly more extensive): https://github.com/home-assistant/frontend/blob/dev/src/components/map/ha-map.ts#L523
I have a slight preference for this approach, but very open to your suggestions.
Didn't even cross my mind to check, i guess my map tab has been disabled for too long, might aswell steal some of their code.
@Manuel-Materazzo thanks a lot! It's working indeed.
Alternative approach for the issue discussed here. Should cover basically any resizing-related issues with leaflet even after the first load. Only drawback is the incompatibility with IE and Opera mini.