/leaflet.measure

Adds interactive distance measuring to leaflet

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Leaflet measure control

Adds a button below the map's zoom controls that allows you to activate an interactive mode to measure distances on the map.

Initialise control

  • Add CSS and JS

    <script src="leaflet.measure/leaflet.measure.js"></script>
  • Add as an option when creating map

map = L.map("map", { measureControl: true });

More info coming soon...

For a demo see here.