1.0.3 • Published 2 years ago

leaflet-nav v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Leaflet.Nav

Simple navigation toolbar for Leaflet.

Leaflet.Nav Screenshot

Install

npm install leaflet-nav --save

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.

OptionTypeDefaultDescription
positionString'topleft'The initial position of the control.
centerL.LatLngMap's Current PositionThe center point for the home view.
zoomNumber0The zoom value for the home view.
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago