GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Intermaps/leaflet.offline: Leaflet offline layer

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

298 Commits
298 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
src
src
 
 
test
test
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.html
index.html
 
 
index.js
index.js
 
 
karma.conf.js
karma.conf.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
rollup.config.js
rollup.config.js
 
 

Repository files navigation

leaflet.offline version 2.x

npm version Build Status

Just a modern and slim library to store tiles offline.

  • example
  • api docs

Warning: The api of version 2 is different from version 1. 2 is still in development.

(Planned) features in version 2

  • Add geojson layer to show stored tiles on map (done)
  • Split storage methods to seperate module. (done)
  • Switch from localforage to idb (mostly done)

Dependencies

  • Leafletjs
  • idb To store the tiles with promises

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@next

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

About

Leaflet offline layer

allartk.github.io/leaflet.offline/

Resources

Readme
LGPL-3.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.