Regarding extInfoWindow.js
I'm wondering what the section between line 558 - 567 as in
http://gmaps-utility-library.googlecode.com/svn/trunk/extinfowindow/src/extinfowindow.js
do.

    if (map.ClickListener_ == null) {
      //listen for map click, close ExtInfoWindow if open
      map.ClickListener_ = GEvent.addListener(map, 'click',
      function(event) {
          if( !event && map.getExtInfoWindow() != null ){
            map.closeExtInfoWindow();
          }
        }
      );
    }

I'm asking since it's 'bugging me' and so far I'm not missing it when
I comment it out.
But it's probably got some kind of function since it's there, so I
don't want to leave that piece of code out if it affects my
application.

It's quite a story why I want to leave the code out, but here's a
short resume for the curious ones:

It all started since I wanted to use extinfowindow to replace
GMap2.openInfoWindow(GLatlng,..) functionality in stead of the
GMarker.openInfoWindowHtml(..).

So I started simulating the GMap2.openInfoWindow() by creating a
marker on the clicked location, with an click-event attached (what
else is there to choose from) launching the
GMarker.openExtInfoWindow(). Right after setting in the marker I
triggered a click-event on that marker:
GEvent.trigger(GMarker,’click’).

Having a marker standing after an user manually has closed an
infowindow is no good. Leaving out map.addOverlay(GMarker) is not
working, so I want the marker to dissapear when I close the
infowindow, using the extinfowindowclose-event.
I’m using a function to create markers, which has an optional argument
whether this marker should be removed when closing its info window
(geocache-input), or not (geocache-output). I create a variable
containing an empty function, which is overridden when argument is
true, with a function which removes its marker. This variable is
attached to the extinfowindowclose-event.

But after closing the first markers infowindow, the closing-handler is
called again removing my new marker straight away!!

That problem dissapears when leaving out the code obove...

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