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.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to