anasrp08 / osmdroid

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

Wrong ZoomToSpan for Latitude #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call ZoomToSpan with Lat, Lon, where Lat > Lon

What is the expected output? What do you see instead?
Expecting to get the right zoom level, getting a wrong one instead. 

What version of the product are you using? On what operating system?
Using osmdroid 3.0.1,

Please provide any additional information below.

Probably: 
  wrongLevel = rightLevel - 2 on normal screen devices

and
  wrongLevel = rightLevel - 1 on small screen devices

Original issue reported on code.google.com by ti...@ametov.net on 8 Feb 2011 at 8:51

GoogleCodeExporter commented 9 years ago
Please retest and let us know if you are still seeing these results. We have 
recently switched algorithms.

Original comment by kurtzm...@gmail.com on 1 Apr 2011 at 1:40

GoogleCodeExporter commented 9 years ago
I'm using jar-library ... but probably i can test it

Original comment by ti...@ametov.net on 1 Apr 2011 at 8:22

GoogleCodeExporter commented 9 years ago
The latest release jar has the new algorithms.

Original comment by kurtzm...@gmail.com on 1 Apr 2011 at 3:39

GoogleCodeExporter commented 9 years ago
I've tested 3.0.3-jar in emulator (WVGA800, Android 2.2)

I called zoomToSpan(10000, 10);

So i'm waiting for bounding box, where delta_lat ~ 10000, but i'm getting 
following values.
lat_north = 49500297
lat_south = 49459923
delta_lat = 40374

I don't have a device now (or better to say, no datacable). But tomorrow i'll 
send you results.

Are u sure new algorithms are within 3.0.3?

Original comment by ti...@ametov.net on 7 Apr 2011 at 4:07