Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Save and restore view from localStorage
JavaScript
branch: master
Failed to load latest commit information.
LICENSE Initial commit
README.md Add link to demo
index.html
leaflet.restoreview.js Remove trailing commas for IE

README.md

Leaflet.RestoreView

Stores and restores map view using localStorage.

First call on restoreView() will setup event listening and view save.

Check out demo.

Usage

    if (!map.restoreView()) {
        map.setView([50.5, 30.51], 15);
    }

Authors

Makina Corpus

Something went wrong with that request. Please try again.