lishxi / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

onScroll gives wrong lat/lon #263

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. implement mapListener
2. in onScroll get x and y from scroll event
3. use projection.formPixels with these screen coordinates(x and y) to get the 
map coordinates

What is the expected output? What do you see instead?
i am scrolling around lon:0 lat:52 and after projecting get lon:0 lat:71

What version of the product are you using? On what operating system?
3.05 android 2.3

Please provide any additional information below.

Original issue reported on code.google.com by omril...@gmail.com on 21 Sep 2011 at 6:01

GoogleCodeExporter commented 9 years ago
just wanted to mention that if i feed the projection with (0,0) or something 
like
that everything is ok. that is the problem is with the x and y stored  in the 
scrollEvent

Original comment by omril...@gmail.com on 22 Sep 2011 at 8:47