I can't seem to (dead simple) Leaflet.map render inside flexbox . I assume this may be a problem with invalidateSize
Dead simple (broken) example: jsbin
If you remove the flexbox CSS, it will work: jsbin
HTML
<body> <div id="content"> <div id="mapPane"></div> </div> </body>
CSS
body { display: flex; flex-flow: column wrap; } #content { flex: 1 1; order: 2; } #mapPane { height: 100%; }
html css flexbox leaflet
megawac
source share