I know this is old fashioned, but maybe someone else can get some information from this.
Yes, you can add another element that exchanges the map element, but if you want to get around this, you can set a listener for the markup event, and then cancel the google action.
In api v3 you can do it like this:
google.maps.event.addListener(myMap, 'tilesloaded', function(){
document.getElementById('map-id').style.position = 'absolute'/'fixed'/'potato'/'whatever';
});
I am sure that there are problems associated with setting the position on the map, different from what Google likes, but if you want the number of elements in the document to be minimal (you really need), this will be the way to do it.
(edit: add quotes)
source
share