![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@mapbox/tilebelt
Advanced tools
simple tile utilities
npm install @mapbox/tilebelt
import * as tilebelt from '@mapbox/tilebelt';
const tile = [10, 15, 8] // x,y,z
tilebelt.tileToGeoJSON(tile);
// {
// "type": "Polygon",
// "coordinates": [
// [
// [ -165.9375, 82.8533822917608 ],
// [ -165.9375, 82.67628497834903 ],
// [ -164.53125, 82.67628497834903 ],
// [ -164.53125, 82.8533822917608 ],
// [ -165.9375, 82.8533822917608 ]
// ]
// ]
// }
tilebelt.getParent(tile);
// [ 5, 7, 7 ]
function | description |
---|---|
tileToGeoJSON(tile) | get a geojson representation of a tile |
tileToBBOX(tile) | get the bbox of a tile |
bboxToTile(bbox) | get the smallest tile to cover a bbox |
getChildren(tile) | get the 4 tiles one zoom level higher |
getParent(tile) | get the tile one zoom level lower |
getSiblings(tile) | get the 4 sibling tiles for a tile |
hasSiblings(tiles, tile) | check to see if an array of tiles contains a tiles siblings |
hasTile(tiles, tile) | check to see if an array of tiles contains a particular tile |
tilesEqual(tile1, tile2) | check to see if two tiles are the same |
tileToQuadkey(tile) | get the quadkey for a tile |
quadkeyToTile(quadkey) | get the tile for a quadkey |
pointToTile(lon, lat, zoom) | get the tile for a point at a specified zoom level |
pointToTileFraction(lon, lat, zoom) | get the precise fractional tile location for a point at a zoom level |
npm ci # install deps
npm test # tests
npm run bench # run benchmarks
npm run format # format using prettier
FAQs
simple tile utilities
The npm package @mapbox/tilebelt receives a total of 16,504 weekly downloads. As such, @mapbox/tilebelt popularity was classified as popular.
We found that @mapbox/tilebelt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.