Unfortunately, the Google Maps API has not yet provided a documented method for the separate map's GUnload() .
There is open Issue No. 772 for this feature in the Google Maps API Issue Tracker. On May 24, 2009, it was marked as βConfirmed,β but it remains open to this day.
In the first comment on this issue, a member of the Google Maps team confirmed that a possible βpartialβ workaround at the moment is to call
map_to_delete.clearOverlays(); GEvent.clearInstanceListeners(map_to_delete);
source share