Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.04 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.04 KB

Leaflet.RestoreView

Stores and restores map view using localStorage.

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

npm npm

Check out the demo !

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

Install

install it via your favorite package manager:

  • npm i leaflet-textpath

Usage

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

Authors

Makina Corpus