1.0.42 • Published 6 years ago
@kaxline/leaflet.offline v1.0.42
leaflet.offline
Just a modern and slim library to store tiles offline.
Dependencies
- Leafletjs
- localforage To store the tiles
Install
Manual or Clone
Just use one of github's download methods (look under the releasestab ) and add dist/leaflet.offline.min.js in a script tag to your page (after leaflet and localforage)
With npm
The package and it's dependencies can also be downloaded into your existing project with npm:
npm install leaflet.offlineIn your script add:
import 'leaflet.offline'Development
For running the example locally, you'll need to clone the project and run:
npm install
npm startVisit http://localhost:3000/ and watch the page reload when you change.
You can test your code with npm test. Please configure eslint in your editor if you wish to contribute.
pull requests welcome
Api
Generate docs with
npm run-script docs