I faced the problem that my map tiles are only shown for zoom levels 14 to 17 I am using offline Mapnik maps. The tiles are in the correct folder (/osmdroid/Mapnik.zip) and in the correct format (.png).
Im starting at zoom 16. when zooming in to 17 there is no problem but when zooming to 18 only the tiles of 17 are scaled. and if I zoom out for a while the tiles for the zoom levels 1-14 not shown. There is only a grey box.
The pngs for these zoom levels are in the .zip archive :/ so i dont know what to do. Does someone have an idea ?
My code is like that:
public class Main extends Activity {
public static final GeoPoint INITIAL_POSITION = new GeoPoint(48.965558, 9.27893);
MapView mapView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mapView = (MapView) findViewById(R.id.map);
mapView.setBuiltInZoomControls(true);
mapView.getController().setZoom(16);
mapView.getController().setCenter(INITIAL_POSITION);
mapView.setTileSource(TileSourceFactory.MAPNIK);
mapView.setUseDataConnection(false);
Ok solved the Problem by splitting into 4 zip files :D
The problem was 150000 files in one zip archive is to big to handle...
See Too much Files for more information.