You'll have to ignore what the official reference does with the encoded levels. In order to use the encoded levels part of encoded polylines, you need to use a line simplification algorithm that takes into account the ever decreasing size of the line as the zoom moves out. Marcelo Montagna and myself wrote this one:
http://www.usnaviguide.com/google-encode.htm It uses a Douglas-Peucker algorithm to determine the encoded levels string and also double escapes all the backslashes, something you'll need to do if you plan on using the results. -John Coryat http://maps.huge.info http://www.usnaviguide.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
