On Aug 2, 12:41 pm, Paul <
pmmen...@gmail.com> wrote:
> Thanks for the help guys... it's almost what I need, but specifically,
> I am looking for 'toggle' functionality when a marker is clicked, not
> the rest of the map. Some piece of code that in the Marker's click
> listener can check
>
> if InfoWindow is open
> close it
> else
> open it
> end if
What problem are you having implementing this? I would think given
your responses (that there is only one infowindow open at a time) it
would be pretty straightforward.
one possible approach:
1. give each marker an id
2. save that id in a global variable when the infowindow is opened
3. mark it as "none" when the infowindow is closed
4. in the click listener check if the current marker's infowindow is
active before opening it, if it is, close it.
-- Larry