Simple navigation toolbar for Leaflet.
JavaScript CSS
Latest commit c913f6c Nov 2, 2016 @davidchouse committed on GitHub Fixes #3
Fixing bug that prevented execution in strict mode
Permalink
Failed to load latest commit information.
src Fixes #3 Nov 2, 2016
LICENSE License Jun 17, 2014
README.md Updating read with bower installation instructions. Jul 21, 2015
bower.json updating bower main files Aug 17, 2016
screenshot.png Adding screenshot Jun 17, 2014

README.md

Leaflet.NavBar

Simple navigation toolbar for Leaflet.

Demo: http://davidchouse.github.io/Leaflet.NavBar/

Leaflet.NavBar Screenshot

Install via Bower

bower install leaflet-navbar

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.NavBar 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.