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

Question about offline usage #4

Closed
JayJayYo opened this issue Mar 5, 2022 · 2 comments
Closed

Question about offline usage #4

JayJayYo opened this issue Mar 5, 2022 · 2 comments

Comments

@JayJayYo
Copy link

JayJayYo commented Mar 5, 2022

Hey first of all great Project,

i have a quick question, is it possible to use this offline without the workaround with a local hosted map tile server?

e.g something like a caching function or a setting to specify a local map/tiles?

@TomSchimansky
Copy link
Owner

Currently there is no such option. But I already started to work on a method to load tiles into a directory and then use them when there is no connection available. The TkinterMapView class already has a method called load_offline_tiles. But they can't be used at the moment. But if I have time, I will try to implement this, it shouldn't be too difficult.

@TomSchimansky
Copy link
Owner

I added offline usage with version 1.4 now. You can create a database and use it for the map widget.
You can specify to use the database only, or use the online server and database both, so that the database will
be only used when the connection breaks.
More information here: https://github.com/TomSchimansky/TkinterMapView/blob/main/examples/map_with%20offline_tiles.py

If you have any questions on this, feel free to ask.

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

No branches or pull requests

2 participants