https://github.com/paraboly/pwc-leaflet-entity-selector
Return entities from selected boundary. Currently polygon is supported for selecting boundaries.
https://github.com/paraboly/pwc-leaflet-entity-selector
Last synced: about 1 year ago
JSON representation
Return entities from selected boundary. Currently polygon is supported for selecting boundaries.
- Host: GitHub
- URL: https://github.com/paraboly/pwc-leaflet-entity-selector
- Owner: Paraboly
- License: mit
- Created: 2020-03-17T09:10:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T16:29:03.000Z (over 3 years ago)
- Last Synced: 2025-04-22T10:43:06.235Z (about 1 year ago)
- Language: HTML
- Homepage: https://paraboly.github.io/pwc-leaflet-entity-selector/
- Size: 754 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README


[](https://github.com/Paraboly/pwc-leaflet-entity-selector)
[](https://www.npmjs.com/package/@paraboly/pwc-leaflet-entity-selector)
[](https://www.npmjs.com/package/@paraboly/pwc-leaflet-entity-selector)

[](https://opensource.org/licenses/MIT)
## Installation
### Script tag
- Put two script tags similar to this in the head of your index.html:
```html
```
### Node Modules
- Run `npm install @paraboly/pwc-leaflet-entity-selector --save`
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc
### In a stencil-starter app
- Run `npm install @paraboly/pwc-leaflet-entity-selector --save`
- Add an import to the npm packages `import @paraboly/pwc-leaflet-entity-selector;`
- Then you can use the element anywhere in your template, JSX, html etc
# Usage
- Add custom element to any html or jsx file
```html
```
- Then, bind map to custom element
```js
var pwcEntitySelectorControl = document.querySelector(
"pwc-leaflet-entity-selector"
);
pwcEntitySelectorControl.map = map; // Set leaflet map instance
pwcEntitySelectorControl.addEventListener("controlEvents", control => {
console.log(control);
});
```
- Check `src/index.html` for more details
## Authors
SchemeSonic, haldun.yildiz@paraboly.com
## License
This repository is available under the MIT license.
See the LICENSE file for more info.