zeta243 / osmdroid

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

zooming out a large amount can lead to an ANR error #315

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Zoom out a large numberof levels in one go.
2. e.g. from 13 to 3.
3.

What is the expected output? What do you see instead?
zoom should work at a reasonable speed, in my case it takes 5 minutes to 
complete leading to ANR errors.

What version of the product are you using? On what operating system?
3.0.7 wavefront codee revision 1080

Please provide any additional information below.

The problem is the TileCache rescaling code.  zooming out 10 level it tries to 
iterate though 1024*1024 tiles, on my device this takes about 5 minutes if you 
let it continue.
I propose a simple fix of restricting the number of zoom levels out the 
rescaleing will happen for. The attachd version of the code restricts rescaling 
to a max of 4 levels.

Original issue reported on code.google.com by iforpow...@gmail.com on 29 Feb 2012 at 8:01

Attachments:

GoogleCodeExporter commented 8 years ago
See also issue 291.

Original comment by neilboyd on 27 Mar 2012 at 7:01

GoogleCodeExporter commented 8 years ago
Patch applied in revision 1084.

Original comment by neilboyd on 30 Mar 2012 at 8:38

GoogleCodeExporter commented 8 years ago
No-one said otherwise, so I'll assume the fix is okay.

Original comment by neilboyd on 5 Apr 2012 at 1:25