Gathering detailed insights and metrics for @mapbox/tile-cover
Gathering detailed insights and metrics for @mapbox/tile-cover
Gathering detailed insights and metrics for @mapbox/tile-cover
Gathering detailed insights and metrics for @mapbox/tile-cover
npm install @mapbox/tile-cover
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
190 Stars
231 Commits
40 Forks
124 Watching
5 Branches
541 Contributors
Updated on 13 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-21.1%
13,948
Compared to previous day
Last week
-3.2%
88,165
Compared to previous week
Last month
10.5%
395,713
Compared to previous month
Last year
59.1%
3,813,256
Compared to previous year
1
Generate the minimum number of tiles to cover a GeoJSON Geometry.
1npm install @mapbox/tile-cover
1var cover = require('@mapbox/tile-cover'); 2var poly = JSON.parse(fs.readFileSync('./poly.geojson')); 3var limits = { 4 min_zoom: 4, 5 max_zoom: 9 6}; 7 8cover.geojson(poly.geom, limits); 9cover.tiles(poly.geom, limits); 10cover.indexes(poly.geom, limits);
Given a geometry, create cells and return them in a format easily readable by any software that reads GeoJSON.
geom
(Object
): GeoJSON geometrylimits
(Object
): an object with min_zoom and max_zoom properties specifying the minimum and maximum level to be tiled.Returns Object
, FeatureCollection of cells formatted as GeoJSON Features
Given a geometry, create cells and return them in their raw form, as an array of cell identifiers.
geom
(Object
): GeoJSON geometrylimits
(Object
): an object with min_zoom and max_zoom properties specifying the minimum and maximum level to be tiled.Returns Array.<Array.<number>>
, An array of tiles given as [x, y, z] arrays
Given a geometry, create cells and return them as quadkey indexes.
geom
(Object
): GeoJSON geometrylimits
(Object
): an object with min_zoom and max_zoom properties specifying the minimum and maximum level to be tiled.Returns Array.<String>
, An array of tiles given as quadkeys.
1npm test
1node bench.js
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
Found 5/22 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
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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