Through the process of elimination I found the problem:

GEvent.addListener(map, "click", map.closeInfoWindow());

I added this as kind of a clean-up to close any open infowindow. I
also added it to the click event for the fuel markers. When I removed
this one the open fuel marker infowindow still closes when I click on
the map.

As I typed this I recalled reading that a click on a marker is also
passed through to the map...so perhaps the two click events were
stepping on each other.

Anyway, seems to be fixed now. Thank you for steering me in the right
direction Mike.

Steve

On Apr 15, 5:51 am, Steve Lambert <[email protected]> wrote:
> Thanks for taking a look at it. Guess I missed the obvious...that
> should make it a bit easier to troubleshoot.
>
> I'll concentrate on click event code.
>
> Thank you for all the examples you provide...they are my main method
> of learning JavaScript.
>
> Steve
>
> On Apr 14, 7:29 pm, Mike Williams <[email protected]> wrote:
>
> > Wasn't itSteveLambertwho wrote:
>
> > >This happens only when clicking one kind of marker and it takes some
> > >setting up to get to that point. So if you have the patience here is
> > >how to do that.
>
> > I've no idea what's causing it, but all that setting up is not necessary
> > to reproduce it. Just load the page and click anywhere on the map.
>
> > --http://econym.org.uk/gmap
> > The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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