Skip to content
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

Closed
LAzyOnline opened this issue Jul 11, 2016 · 15 comments
Closed

Offline map display grid #352

LAzyOnline opened this issue Jul 11, 2016 · 15 comments

Comments

@LAzyOnline
Copy link

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.

@spyhunter99
Copy link
Collaborator

what does the contents of the zip look like?

@LAzyOnline
Copy link
Author

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

@spyhunter99
Copy link
Collaborator

Well it looks right. What version of osmdroid? what os version?

@LAzyOnline
Copy link
Author

Thank you for your reply. OSMdroid version is 5.2;OS version is 4.1.2 。
If you can provide the email address, I can send Demo to you.

@LAzyOnline
Copy link
Author

I'm sorry.
Osmdroid offline map need not need to configure the file. I have no configure file Demo.

@spyhunter99
Copy link
Collaborator

are you still having this issue?

@LAzyOnline
Copy link
Author

Yes, I'm. Because I didn't solve the problem.

@spyhunter99
Copy link
Collaborator

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.

@LAzyOnline
Copy link
Author

Ok.
http://test.360guanggu.com/cjbook/source.png
This is the code screenshot.
http://test.360guanggu.com/cjbook/record.mp4
This is the record a video.

Thank you for your reply.

@spyhunter99
Copy link
Collaborator

The zip looks fine. Is there anything in logcat? It's probably a permissions issue

@LAzyOnline
Copy link
Author

This is the logcat information screenshot.
http://test.360guanggu.com/cjbook/logcat.png
but, I didn't find useful information from it.

@spyhunter99
Copy link
Collaborator

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

@LAzyOnline
Copy link
Author

There is my logcat information.
http://test.360guanggu.com/cjbook/logcat.txt

I found a issue, like this: http://test.360guanggu.com/cjbook/error.png
Is it a issue?

@spyhunter99
Copy link
Collaborator

Mapquest's tile source is by default set to a 'jpg' extension. Your files are .png, thus the error.

@LAzyOnline
Copy link
Author

As you said, my problem is solved, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants