I changed the code to
       if (overlay && typeof (overlay == 'GMarker')) {

but it's not working, as the info window is still reopened when
clicking on the close-button.


On 31 Mrz., 14:20, "[email protected]" <[email protected]>
wrote:
> On Mar 31, 3:52 am, Jonathan Bender <[email protected]> wrote:
>
> > > This is where your listener checks to see if an overlay has been
> > > clicked
> > >      if (overlay) { ...
> > > but what you would need to do is extend that to see if the overlay
> > > clicked was a 
> > > GMarker.http://javascript.about.com/od/reference/g/rtypeof.htm
>
> > Ok, so my code would have to look like:
> >       if (overlay && typeof (??? == 'GMarker')) {...
> > and I may replace "???" with something like
> > "this.map.getClickedOverlay()" -> Is there an proper get-function that
> > returns the clicked overlay-object?
>
> overlay is already a reference to it.
>
>   -- Larry

-- 
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.

Reply via email to