leaflet-nav

1.0.3 • Public • Published

Leaflet.Nav

Simple navigation toolbar for Leaflet.

Leaflet.Nav Screenshot

Install

npm install leaflet-nav --save
## Using the plugin

The default state for the control is just below the zoom control. This will allow map users to navigate forward and back in the map's view history as well as navigate to a home view.

L.control.navbar().addTo(map);

Options for initialising the Leaflet.Nav control.

Option Type Default Description
position String 'topleft' The initial position of the control.
center L.LatLng Map's Current Position The center point for the home view.
zoom Number 0 The zoom value for the home view.

Readme

Keywords

Package Sidebar

Install

npm i leaflet-nav

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

260 kB

Total Files

12

Last publish

Collaborators

  • raomaiping