On Feb 9, 3:39 pm, poles_apart <[email protected]> wrote: > Hi! > > i've been searching for a solution with no luck... i just want to show > a route between several points in G_TRAVEL_MODE_WALKING mode, but when > I set the options on the GDirections constructor like this: > > var gdir = new GDirections(map, > document.getElementById("direccions"), > {"travelMode" : G_TRAVEL_MODE_WALKING} ); > > it behaviors as it were in G_TRAVEL_MODE_DRIVING...
That's because you haven't actually specified Walking. Options are not set in the GDirections constructor as you have it; they are set in the .load() method. See the documentation. http://code.google.com/apis/maps/documentation/reference.html#GDirections -- 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.
