I load a map via an AJAX request dynamically, so I put all the map code inside an iframe. This code uses the javascript API, not the embed API, as I need to draw dynamic sha