I need to add offline map functionality to a PWA.

I guess it may require up to 50 MB to store a certain area. Should this be possible or will I hit any limits?

  • 2
    I guess it could be done.
    Maybe use localStorage or something
  • 4
    @ZioCain localStorage will be limited.

    Check indexeddb, virtually no limits. Use an abstraction layer with a fallback to localStorage.

    PouchDB might be worth a look.
  • 2
    @ZioCain LS limited to abt 5mb usually
  • 1
    @AlgoRythm @cultist yeah, I said a bullshit, sorry
  • 0
    yeah indexeddb should work, check out mega.nz they even request more storage from the browser when downloading/decrypting files
Add Comment