Actually sorted this one by sorting an array
On Feb 21, 4:27 pm, andy <[email protected]> wrote: > I am not sure if this is possible. I want to merge the polyline and > route steps so they are in sequence. ie so I can loop through the > points below in order. Thanks in advance > > var dir:Directions = event.directions; > var directionsPolyline:IPolyline = dir.createPolyline(); > > var len:Number = directionsPolyline.getVertexCount(); > for (var x = 1; x < len-1; x++) > { > var step:LatLng = directionsPolyline.getVertex(x); > > } > > var numSteps:uint = route.numSteps; > for (var s:Number = 0 ; s < numSteps ; s++ ) { > var step:Step = route.getStep(s); > > > > }- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
