GoogleMapsAPI: infowindow on route start + endpoint?

Discussion in 'JavaScript' started by falcondriver, Jul 20, 2008.

  1. #1
    hi there,

    can anyone show me an example how to add an infowindow to the start and endpoint of a route?
    cant find a site who did something like that so look at the source code, and i dont really get my head around this google api doc.

    here is my code to create the route:

    directions1 = new GDirections('map', directionsPanel);
    directions1.load("denver to houston");
    createMarker(directions1, "<b>hello world</b>")';
    
    PHP:
    (this wont work)

    can i use createMarker with a router here, or do i have to get the lan/lat coords from start and endpoint and pass it to create marker - and how would i do that?

    sorry, im not a js expert - im more into databases...
     
    falcondriver, Jul 20, 2008 IP