Just store and pass the array of points. Personally, I wrote a function that took an Array of Lat Lng pairs and returned a polyline. Works just as well via Ajax - and you don't have to deal with the complexity of encoded polylines.
Chad KIllingsworth On May 22, 9:06 pm, Dave <[email protected]> wrote: > Unfortunately, that's already marked as "wontfix" which means it won't > be implemented.http://code.google.com/p/gmaps-api-issues/issues/detail?id=2246 > > Really unfortunate because the encoding is a nice way to store lines > and transfer via AJAX. You'll have to decode them and create the lines > from lat/long points. > > Dave > > On May 21, 3:53 am, Hadmut <[email protected]> wrote: > > > > > > > Hi, > > > about 3 years ago I wrote a little app making use of Googlemaps, > > drawing walking tracks as lines on a map. I used the encoding > > algorithm described > > underhttp://code.google.com/apis/maps/documentation/utilities/polylinealgo... > > to compress the array of positions. > > > Now I want to update that app to use the v3 API, but at the moment I > > don't see how to how to use that with the new polyline API. > > > Has that compression method been deprecated? > > > regards > > > -- > > 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 > > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- > 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 > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. -- 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.
