Hi,
I'm having trouble with the infobox plugin on this site
http://bit.ly/d22gZo
which has multiple markers all which will have an infobox. I've got it
to open on click like so:
function createMarker(x, y, z) {
...
...
google.maps.event.addListener(marker, 'click', function() {
infobox.open(map, marker);
});
...
}
However I can't get it to show/hide toggle on marker click or hide if
another marker is clicked, I get multiple infoboxes on screen all at
once and the only way to close is with the x.
Also clicking on the map to hide an open infobox isn't working, I
tried:
function initialize() {
...
...
google.maps.event.addListener(map, 'click', function() {
infobox.hide();
});
...
});
Many thanks in advance.