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

Example for offline maps #72

Closed
fubian opened this issue Apr 8, 2019 · 3 comments · Fixed by #76
Closed

Example for offline maps #72

fubian opened this issue Apr 8, 2019 · 3 comments · Fixed by #76

Comments

@fubian
Copy link

fubian commented Apr 8, 2019

May you give me an example hot to use offline map tiles from OSM with JXMapViewer2?

@msteiger
Copy link
Owner

There is no example afaik. Beware that you might need a very large amount of files to cover a reasonable big area with sufficient detail. And they become outdated fairly quickly. Are you sure that you really want pure offline maps?

@fubian
Copy link
Author

fubian commented Apr 19, 2019

I will run an air-gapped application, so yes I am sure that I want to use pure offline maps!

My current solution is to change the base URL of the TileFactoryInfo:

TileFactoryInfo info = new OSMTileFactoryInfo("offline", path_to_tile_directory);

Is this a sufficient way?

@msteiger
Copy link
Owner

Can you please check if #76 solves your problem?

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

Successfully merging a pull request may close this issue.

2 participants