This library can be used to create maps, which are still available when you are offline and are fast when your connection is not. It works in the browser or can be used in an mobile app based on html and in progressive webapps.
The package and it's dependencies can also be downloaded into your existing project with npm:
npm install leaflet.offline
In your script add:
import 'leaflet.offline'
Unpack the file for the release (find them under the releasestab ) and add dist/bundle.js in a script tag to your page (after leaflet and idb).
For running the example locally, you'll need to clone the project and run:
npm i && npm run build
cd docs
npm install && npm run start
pull requests welcome
npm test and npm run lint. On wsl wit ubuntu 24.04, install first libasound, libnss3: sudo apt install libasound2t64 libnss3, see puppeteer docsGenerate docs with
npm run-script docs