thank you,
this link http://www.geocodezip.com/DirectionsInfoWindow.html is
exactly what i want
i still have some issues

-if i add a "click" event on the marker to show me the infowindow, it
shows me the infowindow (only visible if i put an alert after) and
then directly shows me the zoom on this marker(the default behavior of
the marker )
-the getTitle() gives me "undefined" althought i put "TITLE" as a
title for the markers
                             (listeRoutes[i][j] = (j+1) + ": " + "
TITLE "+ "@" + tournee[i].sommet[j].marker.getPoint().lat() + "," +
tournee[i].sommet[j].marker.getPoint().lng(); )

I've added listenGdirections(i) in my loop and this is its code

/***************************************************************/

 function listenGdirectons(i)
{
  var newMarkers = [];
  var latLngs = [];
  var icons = [];
 GEvent.addListener(gdirections[i], "load", function()
{
           gdirections[i].getPolyline().setStrokeStyle({
                                                        color: colors[i],
                                                        opacity: '1',
                                                        weight: '4'
                                                });

            for (var z=0; z < gdirections[i].getNumRoutes(); z++)
            {
              remakeMarkers(z);
            }

            function remakeMarkers(z) {
             GEvent.addListener(gdirections[i].getMarker(z), "click",
function(){
                gdirections[i].getMarker(z).openInfoWindowHtml
("Test");
                alert("title = " + gdirections[i].getMarker(z).getTitle
());
                });
            }
});
}
/***************************************************************/

sorry i'm pasting code but i don't have a map yet, it's still a draft
thank you for any suggestions or if i'm missing anything.
--~--~---------~--~----~------------~-------~--~----~
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