Leaflet control to mesure distances on the map.
Requires Leaflet.Draw
Check out the demo
npm install leaflet.measurecontrol
As map option:
var map = L.map('map', { measureControl:true });
Or like any control:
L.Control.measureControl().addTo(map);
npm install # install dependencies
npm run release # minify js and copy sources in docs (example)
See CHANGELOG.md.
- Gilles Bassière
- Alexandra Janin