hungio / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

Looping map won't reset origin value #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Pan the map left or right until it loops
2. Inspect the origin.x value
3.

What is the expected output? What do you see instead?

The origin.x mercator value should have reset itself as your looped so if
you started at Los Angeles and the origin.x = -13228504.803257 and you kept
panning left until you got back to Los Angeles the origin.x should still be
-13228504.803257

Instead, you get origin.x = -53283074.465077  Keep going left until it
loops again and you'll get origin.x  = -93348751.582676

Please use labels and text to provide additional information.

I think we should set the origin to reset itself when the map loops
otherwise other methods like latLongToPixel may not function properly.

Original issue reported on code.google.com by justin.f...@gmail.com on 22 Oct 2008 at 11:10

GoogleCodeExporter commented 8 years ago
This has been fixed a couple weeks ago. There's still an issue if you zoom out, 
but
the origin does indeed loop around properly as far as I know.

Can someone verify this?

Original comment by jose...@gmail.com on 20 Nov 2008 at 2:28