https://github.com/ekylibre/leaflet.draw.merge
Adds merge capabilities to Leaflet.Draw
https://github.com/ekylibre/leaflet.draw.merge
Last synced: about 2 months ago
JSON representation
Adds merge capabilities to Leaflet.Draw
- Host: GitHub
- URL: https://github.com/ekylibre/leaflet.draw.merge
- Owner: ekylibre
- Created: 2017-11-04T19:05:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T09:43:01.000Z (almost 7 years ago)
- Last Synced: 2025-01-28T01:46:36.264Z (4 months ago)
- Language: CoffeeScript
- Size: 254 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leaflet.Draw.Merge
This plugin extends Leaflet.Draw to provide merge capabilities.
It takes advantage of RTree spatial index if available.Works with Leaflet 1.2.0 and Leaflet.Draw 0.4.12
## Usage
```
options:
position: 'topleft'
featureGroup: undefined
disabledPathOptions:
dashArray: null
fill: true
fillColor: '#fe57a1'
fillOpacity: 0.1
maintainColor: true
selectedPathOptions:
dashArray: null
fill: true
fillColor: '#fe57a1'
fillOpacity: 0.9
maintainColor: true
mergingPathOptions:
dashArray: '10, 10'
fill: false
color: '#fe57a1'new L.Merge map, options
```## Installation
Via NPM: ```npm install leaflet-draw-merge```Include ```dist/leaflet.draw.merge.js``` on your page.
Or, if using via CommonJS (Browerify, Webpack, etc.):
```
var L = require('leaflet')
require('leaflet-draw-merge')
```
## 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/```