Not sure what you really want to achieve. If I understand you right:
the info window should not be closed and reopened again when clicking
on a marker?
Then you can try this
if(map.getInfoWindow().isHidden() ) {
marker.openInfoWindowHtml(html,
{ noCloseOnClick: true });
}
This means that the info window will only be opened when there is no
info window already open, so the info window doesn't flicker (results
from being closed and opened again) when you click on just the marker
with the opened info window.
This also means: If you want to reopen an info window you first have
to close it, but you didn't say on which action the info window should
be closed.
The code above makes it also impossible to open the info window of
another marker when there is already an opened info window visible.
On Oct 11, 6:29 pm, ioustinos <[email protected]> wrote:
> thing is that i have already assigned some actions for when the window
> closes normaly...I need to be able to close it, just normaly when the
> user clicks the X button...
> I just don't want it to close and open every time i click on the
> marker.
> I tried to do this GEvent.clearListeners(new_marker, "click"); but
> did not work. maybe cause i have the infowindow binded? i want it
> binded though only for having it to reopen on dragend...not on click.
>
> On Oct 11, 2:48 pm, Mike Williams <[email protected]> wrote:
>
> > An alternative strategy, using only documented features, is to listen
> > for "infowindowclose" events on your map, and immediately reopen it.
>
> > --
> > Mike Williamshttp://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---