Skip to content

makinacorpus/Leaflet.MeasureControl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Leaflet.MeasureControl

Leaflet control to mesure distances on the map.

Requires Leaflet.Draw

Check out the demo

Install

npm install leaflet.measurecontrol

Usage

As map option:

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

Or like any control:

L.Control.measureControl().addTo(map);

Development

npm install      # install dependencies
npm run release  # minify js and copy sources in docs (example)

Changelog

See CHANGELOG.md.

Authors

  • Gilles Bassière
  • Alexandra Janin

Makina Corpus