On Jul 24, 4:32 pm, Seo <
seo...@gmail.com> wrote:
> Seems it did work, however, the info window wasn't automaticly closed
> by removing the marker.
Marker and infowindow are different objects. If you have just one
infowindow instance, you can call myInfoWindow.close(). If you create
many InfoWindow instances you have to push them in an array. So you
can close them by a similar loop than you use for clearing markers.
I have also tried a brute method for clearing individual map panes.
function clearOverlays(){
var pane = document.getElementById("pane_1");
while(pane && pane.firstChild){
pane.removeChild(pane.firstChild);
}
}
It works but I would not recommend using it. Just experimenting.