This is 2 solution for example data of the problem. The map initialize when you click on "Tab Map" instead on page load. That way we make sure the map is initialize when we actually need it.
TAB 1
Lorem ipsum
Dolor sit
Lorem Map
TAB 3
TAB 4
TAB 5