True lasso selection plugin for Leaflet
Switch branches/tags
Nothing to show
Clone or download
Latest commit 33f4d3a Jul 24, 2018
Permalink
Failed to load latest commit information.
dist Bump version Jul 18, 2018
docs Cleanup Jul 8, 2018
src Disable select on map container only Jul 18, 2018
.gitignore WIP Jun 21, 2018
LICENSE Initial commit Jun 18, 2018
README.md Update readme Jul 24, 2018
package-lock.json Bump version Jul 18, 2018
package.json Bump version Jul 18, 2018
tsconfig.json WIP Jun 21, 2018
webpack.config.js WIP Jun 21, 2018

README.md

leaflet-lasso

True lasso selection plugin for Leaflet. Demo

screenshot

Install

npm install leaflet-lasso
import "leaflet-lasso"

or

<script src="https://unpkg.com/leaflet-lasso@latest/dist/leaflet-lasso.min.js"></script>

Usage

const lasso = L.lasso(map);
lasso.enable();
map.on('lasso.finished', (event) => {
    console.log(event.layers);
});

Methods

  • enable()
  • disable()

Events

  • lasso.finished
  • lasso.enabled
  • lasso.disabled