I want to create website with leaflet map placed in bootstap tab. If I switch into tab where is leaflet instantion tiles are not loading correct(I see the grey background). I guess there is a problem with size of <div>
a because if resize the browsers window tiles load correctly. Any ideas? Here is my basic concept.
Asked
Active
Viewed 746 times
0

pawaelus
- 159
- 2
- 10
-
Possibly a duplicate of https://stackoverflow.com/questions/15089541/leaflet-map-loading-half-greyed-tiles? and others - just run `invalidateSize()` on the map instance when the parent container becomes visible. – IvanSanchez Jan 18 '17 at 14:58