Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tilebelt

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tilebelt

simple tile utilities

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
72K
increased by2.38%
Maintainers
1
Weekly downloads
 
Created
Source

tilebelt

simple tile utilities

##install

npm install tilebelt

##usage

var tilebelt = require('tilebelt');

var tile = [10,15,8] // x,y,z

console.log(tilebelt.tileToGeoJSON(tile));
console.log(tilebelt.getParent(tile));
functiondescription
tileToGeoJSON(tile)get a geojson representation of a tile
getChildren(tile)get the 4 tiles one zoom level higher
getParent(tile)get the tile one zoom level lower
getSiblings(tile)get the 3 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

Keywords

FAQs

Package last updated on 14 Aug 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc