I have an application with an Osmdroid-MapView, whose data is stored in an off-map on the device: /mnt/sdcard/osmdroid/tiles.zip
Structure of the zip file:
+-- MapquestOSM
+-- 10
¦ +-- 550
¦ +-- 335.png
...
My goal: I want to store different offline maps and a certain then can be selected in the program.
My problem: in what form do I have to store the maps in the osmdroid folder and how can I tell Osmdroid my choice?
Part of source:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
MapView mapView = (MapView) findViewById(R.id.mapview);
mapView.setClickable(true);
mapView.setBuiltInZoomControls(true);
mapView.setMultiTouchControls(true);
mapView.setUseDataConnection(true);
mapView.setTileSource(TileSourceFactory.MAPQUESTOSM);
IMapController mapViewController = mapView.getController();
mapViewController.setZoom(15);
mapViewController.setCenter(BERLIN);
}
Please help !
Regards Wicki