That did the trick, thank you!

   -- Kay

Mike Williams wrote:
> This line doesn't create a copy of the directions polyline
> 
>    poly = new GPolyline(directions.getPolyline());
> 
> The first parameter of new GPolyline should be an array of GLatLng()s, 
> not a GPolyLine(). You end up with a polyline with no vertices, which 
> does have zero length.
> 
> Try using
> 
>    poly = directions.getPolyline();
> 

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