Leaflet.Range
A simple HTML5 range control for Leaflet maps.
See the example.
Tested with Leaflet 1.1.0
Install
npm install leaflet-range
Usage
Include the CSS:
<link rel="stylesheet" href="L.Control.Range.css" />
Include the JavaScript:
<script src="L.Control.Range-min.js"></script>
The control can be oriented vertically or horizontally. It will fire input
and change
events as the user
interacts with the slider.
Example usage:
var slider = Lcontrol; slider; map;
Credits:
Developed and maintained with support from the U.S. Forest Service and the USDA Northwest Climate Hub.