I am implementing App vith usage of osmdroid mapView. We have maps with max 16 zoom level, but Android allow us to have 18 zoom levels. Do you know how to set maximum zoom level 16 instead of default 18?
Thanks
Hmyzak
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Update – we have added simple setMin/MaxZoomLevel() methods to MapView in the trunk. It should be included in 3.0.10.
See https://code.google.com/p/osmdroid/issues/detail?id=418 for additional info.
Original answer:
Create your own TileSource class and use that. You can piggyback on one of the concrete tile source classes, like:
Note the “16” – that is where you specify the max zoom level.
But really, you should create your own concrete class and extend BitmapTileSourceBase. It sounds like you are using static imagery and not online imagery which is what XYTileSource is for.