On Jan 31, 4:13 am, dan <[email protected]> wrote:
> hi,
> i'm generating a route with this code
> /******************************************************************/
>   for (var i = tournee.length -1; i>=0  ; i--)
>   {
>       gdirections[i] = new GDirections(map);
>       changementCouleur(i)
>
>       listeRoutes[i] = new Array();
>       for (var j = 0;j<tournee[i].nbSommets ;j++)
>       {
>         listeRoutes[i][j] = (j+1) + ": " + " TITLE "+ "@" + tournee
> [i].sommet[j].marker.getPoint().lat() + "," + tournee[i].sommet
> [j].marker.getPoint().lng();
>       }
>
>       gdirections[i].loadFromWaypoints(listeRoutes
> [i],directionOptions);
>  }
> /*****************************************************************/
> i want to add onClick event on the markers of gdirections so that it
> shows me the title of each marker when i click on it.
>
> can i do this directly on those markers ?

Yes.
http://www.geocodezip.com/\DirectionsInfoWindow.html

> or do i have to make a turnaround and recreate the markers.

You could do that too, you might want to do that, but you don't have
to.

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