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 in ionic (react) / react? #7

Open
borakuldeep opened this issue May 15, 2020 · 2 comments
Open

Offline map in ionic (react) / react? #7

borakuldeep opened this issue May 15, 2020 · 2 comments

Comments

@borakuldeep
Copy link

Hello, Great repo. If you are familiar with ionic, could you please share your thought on how to implement offline maps in ionic latest version? The offline should work across all platforms (web/mobile/native).
I am using react for ionic.
Can't find your email, that;s why mentioning this here.

@tbicr
Copy link
Owner

tbicr commented May 15, 2020

Hi, unfortunately I don't familiar with ionic.

A few ideas, that should works in general (not related to framework you choose):

  • static files as html/js/css/sprites should have no issues with going offline
  • most issue you can have with tile data caching
  • if you can deliver and manage tile data within application, sound this way can be better
  • if you cannot deliver (using web page that can go offline), then you can do something similar to this repo (use storages available in browser and override way to fetch tiles)
  • you probably want to decrease area you want to cache to decrease cache data size
  • you probably want to decrease max zoom you want to cache to decrease cache data size
  • you probably want to use vector tiles instead raster to decrease cache data size
  • you probably want to use vector tiles with only necessary features to decrease cache data size

@borakuldeep
Copy link
Author

Thanks a lot for reply. I will look into it and post results on GitHub. Cheers!

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