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

tilebelt

Package Overview
Dependencies
Maintainers
22
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tilebelt - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

5

index.js

@@ -135,4 +135,5 @@ // a tile is an array [x,y,z]

var z = getBboxZoom(bbox);
var x = bbox[0] >> (32 - z);
var y = bbox[1] >> (32 - z);
if (z === 0) return [0,0,0];
var x = bbox[0] >>> (32 - z);
var y = bbox[1] >>> (32 - z);
return [x,y,z];

@@ -139,0 +140,0 @@ }

2

package.json
{
"name": "tilebelt",
"version": "0.5.1",
"version": "0.5.2",
"description": "simple tile utilities",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -142,1 +142,11 @@ var test = require('tape'),

});
test('bbox to tile -- crossing 0 lat/lng', function(t) {
var bbox = [-10, -10, 10, 10];
var tile = tilebelt.bboxToTile(bbox);
t.ok(tile, 'convert bbox to tile');
t.equal(tile[0], 0);
t.equal(tile[1], 0);
t.equal(tile[2], 0);
t.end();
});
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