Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Mar 6, 2013
Nov 22, 2013
Jan 28, 2019

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.

Note: This plugin uses localStorage to store data, if your browser denies storing local data, this will not work.

Usage

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

Authors

Makina Corpus

You can’t perform that action at this time.