I have generated a sqlite tile via atlas generator(according to this guide), but when i using this tiles in OSMDroid , OSMDroid does not showing anything! I don't know what is the issue, i have checked everything like zoom levels, center locations and etc..
Here are my codes :
MapView map = (MapView) rootView.findViewById(R.id.map);
map.setTileSource(new XYTileSource(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "osmdroid" + File.separator + "tehran17.sqlite", 14, 17, 256, ".jpg", new String[] {}));
//....
map.setUseDataConnection(false);
IMapController mapController = map.getController();
mapController.setZoom(15);
GeoPoint startPoint = new GeoPoint(35.692855, 51.356535);
mapController.setCenter(startPoint);
I have checked needed permissions like read and write external, i have checked generated sqlite file and it seems it is OK.
Aucun commentaire:
Enregistrer un commentaire