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

Check whether tiles are already cached. #46

Open
arenol opened this issue Jan 20, 2021 · 0 comments
Open

Check whether tiles are already cached. #46

arenol opened this issue Jan 20, 2021 · 0 comments

Comments

@arenol
Copy link

arenol commented Jan 20, 2021

I have an application that is supposed to work on cell phones out it the forest without mobile coverage. Hence, it is possible to cache the maps before going out, and I've used PouchDBCahed for this purpose.

The application can be found here, and the tiles can be cached by pressing the blue button below the map.

First time, it takes a few minutes to cache all tiles upon startup.

When you open the page a later time and then press the blue button, it takes only a few seconds to cache all the tiles.

This suggests that the tiles are still in the cache.

Is there a way I can check for this when initializing the map, so I can use the cache and gray out the blue button right at the start?

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

1 participant