Gathering detailed insights and metrics for leaflet-area-select
Gathering detailed insights and metrics for leaflet-area-select
Gathering detailed insights and metrics for leaflet-area-select
Gathering detailed insights and metrics for leaflet-area-select
Control to just select an area and provide bbox for it
npm install leaflet-area-select
Typescript
Module System
Node Version
NPM Version
JavaScript (92.57%)
HTML (7.43%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
35 Stars
90 Commits
17 Forks
1 Watchers
8 Branches
4 Contributors
Updated on Oct 02, 2024
Latest Version
1.1.1
Package Id
leaflet-area-select@1.1.1
Unpacked Size
20.68 kB
Size
5.36 kB
File Count
6
NPM Version
10.7.0
Node Version
18.20.4
Published on
Sep 18, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Control to just select an area and provide bbox for it
1npm install --save leaflet-area-select
1var SelectArea = require("leaflet-area-select"); 2// or 3import SelectArea from "leaflet-area-select";
1<script type="text/javascript" src="path/to/Map.SelectArea.min.js"></script>
Including the handler into the project will automatically add it to the L.Map
,
so to enable/disable it you can use methods:
1let map = new L.Map("map", { 2 selectArea: true, // will enable it by default 3}); 4 5// or 6map.selectArea.enable(); 7 8map.on("selectarea:selected", (e) => { 9 console.log(e.bounds.toBBoxString()); // lon, lat, lon, lat 10}); 11 12// You can restrict selection area like this: 13const bounds = map.getBounds().pad(-0.25); // save current map bounds as restriction area 14// check restricted area on start and move 15map.selectArea.setValidate((layerPoint) => { 16 return bounds.contains(this._map.layerPointToLatLng(layerPoint)); 17}); 18 19// now switch it off 20map.selectArea.setValidate();
1// dragging will be enabled and you can 2// start selecting with Ctrl key pressed 3map.selectArea.setControlKey(true); 4 5// box-zoom will be disabled and you can 6// start selecting with Shift key pressed 7map.selectArea.setControlKey(true);
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 3/14 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
48 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More