I have also tried using google.maps,DirectionsTravelMode.DRIVING. But no luck. And also if I doesn't specify preserveViewport in DirectionsRendererOptions, then it gives a script error "a is null or not an object" at an earlier stage.
But this works perfectly fine when I go to google maps site. And also is there any limit on the number of wayPoints we can give in a request. When I tried with more than 13, I was getting status as "UNKNOWN_ERROR" My client requirement is that he should be able to give the locations he visited on a particular date. Then my application should plot the direction for this route. Thanks & Best Regards, Sarath On Mar 13, 12:29 am, Marcelo <[email protected]> wrote: > On Mar 12, 7:50 pm, bratliff <[email protected]> wrote: > > > I believe travelMode expects an 'enum' constant, not a string literal. > > > travelMode:google.maps.DirectionsTravelMode.DRIVING, > > > I have not checked the documentation to see if both are acceptable. > > Yes, I thought so too, and that's why I mentioned "other potential > problems", but changing that made no difference, while changing the > addresses did. > > -- > Marcelo -http://maps.forum.nu > -- -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
