Hello,

I have an application where users can mark areas and routes with
polylines.  Basically there is a modal window where you can draw lines
and as long as you draw, it looks fine. When you click save the lines
is encoded, sent to the server and decoded to be displayed on the main
map. Generally everything is OK, but when you start panning, zooming
in/out every few points and draw a polyline consisting 20-30 points
the line becomes distorted. The first few points are fine, but from
some point it starts to be its mirror image reflected from a line
which goes from bottom left to top right at the 45 degrees angle. I
couldn't find any particular action that I perform just before
inserting the first reflected point and do not perform earlier. The
problem is that as long as you are drawing, the whole line looks as it
ought to. It becomes distorted after displaying it on the main map.
For encoding I use 
http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/PolylineEncoderClass.html,
but I don't think that this is its fault, since encoding works fine
when you don't use pan/zoom too much.

This is the example 
http://72.14.179.48:3030/markers?colors=0&lat=40.716086&lng=-73.927924&maps=79&t=hybrid&z=16.
All the lines should go along the bank, like the brown one. Brown line
is short and it's OK, but the rest are reflected starting from some
point. The red line becomes reflected almost at the end, while pink
and lime almost from the beginning. Blue one is OK in the middle, but
distorted in the beginning and in the end.

To reproduce:
- go to  
http://72.14.179.48:3030/markers?colors=0&lat=40.716086&lng=-73.927924&maps=79&t=hybrid&z=16
- login as wojciech2/asdf1234
- hover over a map title and click "draw line/shape"
- select line or shape
- trace a specific path that you will remember
- create at least 30 points, after every few points a) zoom in/out on
the map b) pan the map c) then establish another point
- be sure to take at least 1 minute and 30 seconds to draw the line/
shape
- be sure to continue zooming in or out and panning the map before
establishing points

--
regards,
Maciej Lotkowski

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