I have two divs, one with a world map and one with a USA map. When the USA clicks on the world map, I want to hide this div and display the USA map.
This works, but the map is tiny, although the position of the zoom buttons indicates that the size of the div should be what it should be.

Any ideas?
If I have both divs specified by "block" from the very beginning, they are both the correct size, this is only when the code is called to switch the div, which it fails.
onRegionClick: function(event, code){ if (code == "US") { openUS('us-map') } }, function openUS(a) { document.getElementById("world-map").style.display = 'none'; document.getElementById(a).style.display = 'block'; }
source share