On Mar 6, 11:03 am, joerg <[email protected]> wrote:
>
> When I write this encoded polyline in a XML file, I replace \\ by \\\
> and the line still looks correct, but only at the first view. When I
> zoom closer, there is a divergence of almost a mile.
>
> So it seem I have the same problem like this 
> threat:http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6...
>
> But unfortunately, they didn't post the solution.
>
> What's wrong?

1: You didn't post a link to your map.
2. That thread did post the solution: each \ needs to be turned into \
\ when the polyline is given as a literal string. So you should never
end up with three together, it should always be an even number.

If you're using the textarea data-entry method, then \ doesn't need to
be converted to \\ because textarea takes a literal backslash
correctly.

Correct use of backslashes does create correct encoded polylines, so
if your lines are wrong it's your backslashes which need changing. A
link would help to diagnose where things are wrong, which is why the
posting guidelines request one.

-- 
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.

Reply via email to