Return entities from selected boundary. Currently polygon is supported for selecting boundaries.
MIT License
<script
type="module"
src="https://unpkg.com/@paraboly/pwc-leaflet-entity-selector@latest/dist/pwc-leaflet-entity-selector/pwc-leaflet-entity-selector.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/@paraboly/pwc-leaflet-entity-selector@latest/dist/pwc-leaflet-entity-selector/pwc-leaflet-entity-selector.js"
></script>
npm install @paraboly/pwc-leaflet-entity-selector --save
<script src='node_modules/@paraboly/pwc-leaflet-entity-selector/dist/pwc-leaflet-entity-selector.js'></script>
in the head of your index.htmlnpm install @paraboly/pwc-leaflet-entity-selector --save
import @paraboly/pwc-leaflet-entity-selector;
<pwc-leaflet-entity-selector></pwc-leaflet-entity-selector>
var pwcEntitySelectorControl = document.querySelector(
"pwc-leaflet-entity-selector"
);
pwcEntitySelectorControl.map = map; // Set leaflet map instance
pwcEntitySelectorControl.addEventListener("controlEvents", control => {
console.log(control);
});
src/index.html
for more detailsSchemeSonic, [email protected]
This repository is available under the MIT license.
See the LICENSE file for more info.