Wasn't it Felix who wrote:
>
>Is it anyhow possible to access and manipulate the marker variable,
>which i want to get displayed? I don't have a clue yet.

Yes. Just do what you were doing, but use a function to contain the
GEvent calls and obtain function closure for one marker.

  function handleEvents(marker) {
    GEvent.addListener(marker, "mouseover", function() {
      marker.openInfoWindowHtml(information[i]);
    });
    GEvent.addListener(marker, "mouseout", function() {
      map.closeInfoWindow();
    });
  }

  GEvent.addListener(directons, "load", function() {
    for(var i=0; i<waypoints.length; i++) {
      var marker = directons.getMarker(i);
      handleEvents(marker);
    }
  });

And use map.closeInfoWindow() rather than marker.closeInfoWindow()

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