If you've got a polyline of the route, then EPoly.GetPointsAtDistance(1000) will return an array of GLatLngs at 1000 metre intervals along that route.
To split a poly into two, in order to create two different coloured polys, you can use EPoly.GetIndexAtDistance() to find the index of the vertex that follows the break. Then copy the vertices from 0 to I-1 into a new array of GLatLngs, and add the break point GLatLng to the end, and create one poly from that. Then start with the break point GLatLng, put that into a new array and copy in the vertices from I to the end, and create your second poly from that. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
