amiqat / osmdroid

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

Unable to set minimum and maximum zoom level restrictions #398

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Usage of the below codes does not help to restrict the zoom levels during 
viewing of maps:

MyTileSource myTiles = new MyTileSource( "" + tID, null, 14, 16, 256, ".png");

For example from what I read, this line should restrict the zoom levels to 
between 14 and 16.

More details can be found here in this link: 
http://stackoverflow.com/questions/14065840/right-way-of-setting-minimum-and-max
imum-zoom-level-for-osmdroid

What is the expected output? What do you see instead?
The zoom levels will not be restricted and I can still zoom into levels that I 
did not download the maptiles for.

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

I am doing this on Android Mobile, and I have tested from Android OS 2.3 - 4.1 
and all doesn't work for restricting zoom level.

Original issue reported on code.google.com by yukai.li...@gmail.com on 2 Feb 2013 at 2:49

GoogleCodeExporter commented 8 years ago
Moving this to issue 418.

Original comment by kurtzm...@gmail.com on 4 Apr 2013 at 6:06