https://github.com/ekylibre/leaflet.reactivemeasure
https://github.com/ekylibre/leaflet.reactivemeasure
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ekylibre/leaflet.reactivemeasure
- Owner: ekylibre
- Created: 2017-10-09T09:37:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T09:17:30.000Z (almost 7 years ago)
- Last Synced: 2025-01-28T01:46:39.328Z (4 months ago)
- Language: CoffeeScript
- Size: 71.3 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leaflet.ReactiveMeasure
This plugin extends Leaflet.Draw to provide a Measure Control on both visualization and edition mode.
Works with Leaflet 1.2.0 and Leaflet.Draw 0.4.12
## Usage
```
L.ReactiveMeasureControl(editionLayer, {
position: 'bottomright',
metric: true,
feet: false
}).addTo(map)```
## Installation
Via NPM: ```npm install leaflet-reactive-measure```Include ```dist/reactive_measure.js``` on your page.
Or, if using via CommonJS (Browerify, Webpack, etc.):
```
var L = require('leaflet')
require('leaflet-reactive_measure')
```
## Development
This plugin is powered by webpack:* Use ```npm run watch``` to automatically rebuild while developing.
* Use ```npm test``` to run unit tests.
* Use ```npm run build``` to minify for production use, in the ```dist/```