I have maybe a silly question related to this now. If I find a value inside of my listener method, how can I use it outside of that method? Declaring a global variable outside of it and accessing it in my code after the directions call just results in it saying the variable is null.
Thanks, 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 -~----------~----~----~----~------~----~------~--~---
