This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Right way of setting minimum and maximum zoom level for OSMdroid

0

I have tried setting this in my codes to set the minimum and maximum zoom levels for viewing on the android platform:

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

This is an example of what I've done to try and limit the zoom levels between 14 and 16.

From this question, I understand that there is a work around which is to manually edit the files in the package.

However, I currently have 2 different MapView activities catered for different viewing, thus I am unable to define a global settings in the library package file. What should be the right way to get the above codes to work in setting the minimum/maximum zoom?

asked 31 Jan '13, 15:56

lyk's gravatar image

lyk
41446
accept rate: 0%

Source code available on GitHub .