Dang, you're good!  I'll have to move that closeclick listener out of
that loop and into a global area.

Don't worry about the english, all I can understand are languages such
as Javascript and C#  : )

Thanks Marx!


On Jul 15, 11:20 pm, Marx Tseng <[email protected]> wrote:
> for(var i in markers) {
> ....
> AttachMessage(marker, markerInfoContent);
> ....}
>
> ....
> ....
> function AttachMessage(marker, markerContent) {
> ....
> google.maps.event.addListener(infoWindow, 'closeclick', function()
> {}))
> ....
>
> }
>
> Because you have five markers,
> so according to your logic,
> your infowindow registered with the five event listener,
> so you press the close of five alert message will be displayed
>
> my english is not good...
>
> On 7月16日, 上午5時48分, CSharp <[email protected]> wrote:
>
>
>
> > Actually with this post, there are two issues:
>
> > 1) When an InfoWindow gets loaded, stays up (sticky), and gets it's
> > content reloaded over and over using like say a Javascript setInterval
> > call, the InfoWindow flashes in and out during the setContent.  Is
> > there a way to reload the contents of the InfoWindow without this
> > flickering?
>
> > 2) Now, if the InfoWindow gets closed by clicking on the "x" button,
> > it causes the event handler, "closeclick", to go off.  What I noticed
> > is that this event handler gets called multiple times if the
> > InfoWindow keeps reloading the content when it is opened.
>
> > Check out the functionality here:
>
> >http://www.mentoreng.com/testing/public/map.html- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to