NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×107
×99
×47

question asked: 31 Jan '13, 15:56

question was seen: 6,303 times

last updated: 31 Jan '13, 15:56

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum