New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline map display grid #352
Comments
what does the contents of the zip look like? |
A MapquestOSM directory folder inside the tiles.zip, folder inside a 15 level slicing folder, the folders name are 1, 2, 3, 15, each folder inside contains sections folder, to the number of names, slice folder contains, file slices is PNG format of. For example, the path to a slice of the level 15 file is: tiles.zip\MapquestOSM\15\17607\10748.png |
Well it looks right. What version of osmdroid? what os version? |
Thank you for your reply. OSMdroid version is 5.2;OS version is 4.1.2 。 |
I'm sorry. |
are you still having this issue? |
Yes, I'm. Because I didn't solve the problem. |
I'm still not sure what the problem is. Can you record a video of it? If your zip file only has tiles at zoom 15, then zooming past 15 would at first display "scaled" tiles, then as you pan the map, the grey grid. That's perfectly normal. If there's nothing to display, you get the grid. |
Ok. Thank you for your reply. |
The zip looks fine. Is there anything in logcat? It's probably a permissions issue |
This is the logcat information screenshot. |
https://github.com/osmdroid/osmdroid/wiki/FAQ#debugging-tile-loading-issues sorry, forgot to mention, turn on tile loading debugging. it should help produce more log output |
There is my logcat information. I found a issue, like this: http://test.360guanggu.com/cjbook/error.png |
Mapquest's tile source is by default set to a 'jpg' extension. Your files are .png, thus the error. |
As you said, my problem is solved, thank you very much. |
When I use OSMDroid to show off line maps, I have a problem. The offline map shows the grid. My configuration is as follows:
MapView mapView = (MapView) findViewById(R.id.map);
mapView.setClickable(true);
mapView.setBuiltInZoomControls(true);
mapView.setMultiTouchControls(true);
mapView.setUseDataConnection(true);
mapView.setTileSource(TileSourceFactory.MAPQUESTOSM);
GeoPoint BERLIN = new GeoPoint(52.516667, 13.383333);
IMapController mapViewController = mapView.getController();
mapViewController.setZoom(15);
mapViewController.setCenter(BERLIN);
I have a slice tiles.zip, I put it in the /osmdroid directory under the SD card.But the map cannot be displayed.I try to decompression it. Then open the network, you can display a few slices (I have a very large slices ), and can only show that a few pictures. Zoom in, but this a few pictures to enlarge, will not be replaced by the corresponding zoom level of the map. I hope I can get your help, thank you.
The text was updated successfully, but these errors were encountered: