The Google V3 Maps API supports the noClear option:
If true, do not clear the contents of the map div.
Use it as:
var myLatlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 8, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP, noClear: true, }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
However, semantically, it is better to place the overlay div # as the next sibling of the div div, as @Marcelo suggests.
ento
source share