i have a big problem. i want to open a leaflet map in a modal. but the map is not showing properly. the tiles are not loading.
here is the script:
http://boo
This worked for me -
$('#gmap').on('shown.bs.tab', function (e) { //call the clear map event first clearMap(); //resize the map - this is the important part for you map.invalidateSize(true); //load the map once all layers cleared loadMap(); })