Stefan,

You could have simplified it a lot more. ;-)
I removed jquery and further simplified the code until there were no
more than 20 lines in all.

Still, the same behaviour persists.
Reading the documentation, it looks as if G_MAP_FLOAT_PANE is above
everything else in the map, although a click on an overlay is indeed a
click on the map, so I think that it is the correct behaviour.

If you add
  map.openInfoWindow(map.getCenter(),'hello')
you get the same behaviour, namely a click on the map when you click
the infoWindow. The difference is that in the case of the standard
infoWindow, the first parameter to the click event is the infoWindow
itself, while in the case of your "infoBox" the first parameter is
null.
So, you can use that to differenciate the clicks.

--
Marcelo - http://maps.forum.nu
--

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