Skip to content
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs docs update Feb 4, 2018
src Do not throw error when not ready Jun 2, 2019
test prettier Jul 15, 2018
.eslintrc.js arrow function, no this Jan 10, 2018
.gitignore md docs Jan 14, 2018
.npmignore created .npmignore Feb 20, 2018
.travis.yml use node 8 Jan 12, 2018
LICENSE Update LICENSE Nov 14, 2018
README.md fix link? Jan 14, 2018
documentation.yml docs update Feb 4, 2018
index.html update cdn links Jun 2, 2019
karma.conf.js update packes etc Feb 24, 2018
package-lock.json audit fix Jun 2, 2019
package.json audit fix Jun 2, 2019
rollup.config.js bubble Nov 19, 2017

README.md

leaflet.offline

npm version Build Status

Just a modern and slim library to store tiles offline.

Dependencies

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.offline

In your script add:

import 'leaflet.offline'

Development

For running the example locally, you'll need to clone the project and run:

npm install
npm start

Visit 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
You can’t perform that action at this time.