|
|
před 2 roky | |
|---|---|---|
| .. | ||
| dist | před 2 roky | |
| svg | před 2 roky | |
| LICENSE | před 2 roky | |
| README.md | před 2 roky | |
| package.json | před 2 roky | |
Allows Union, Difference, Xor, and Intersection operations on two polygons. This is a Leaflet wrapper around JSClipper.
You'll need:
leaflet: >=1.1.0clipper-lib: ^6.2.1leaflet-clipper: ^1.1.0 That's this library.Need to run with an older version? Let me know, there was a breaking change regarding Mixin.Events. Easy to modify.
var map = ...
var layer = ...
var drawState = new L.Clipper.OR( map, {
featureGroup: layer,
selectedPathOptions: {
color: '#FF3399'
}
} );
drawState.enable();
drawState.disable();