Having trouble getting a simple Leaflet.map
to display properly within a flexbox
. It seems like the issue may be related to using invalidateSize
Here is a basic example where it's not working as expected: jsbin
If you remove the flexbox CSS, it should work fine: 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%;
}