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

open-geotiling

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-geotiling - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

dist/coordinate.d.ts

4

dist/merging-tile-area.js

@@ -5,3 +5,3 @@ "use strict";

const tile_size_1 = require("./tile-size");
const index_1 = require("./index");
const open_geo_tile_1 = require("./open-geo-tile");
class MergingTileArea extends tile_area_1.default {

@@ -100,3 +100,3 @@ constructor(subtilesPerTile) {

delete this.tilesHashMap[tilePrefix];
const biggerTile = index_1.default.buildFromTileAddress(newTile.getTileAddressPrefix());
const biggerTile = open_geo_tile_1.default.buildFromTileAddress(newTile.getTileAddressPrefix());
this.addNonContainedTile(biggerTile);

@@ -103,0 +103,0 @@ }

@@ -5,3 +5,3 @@ "use strict";

const coordinate_1 = require("./coordinate");
const index_1 = require("./index");
const open_geo_tile_1 = require("./open-geo-tile");
const merging_tile_area_1 = require("./merging-tile-area");

@@ -98,3 +98,3 @@ const open_location_code_typescript_1 = require("open-location-code-typescript");

}
let rasterizedArea = new merging_tile_area_1.default();
const rasterizedArea = new merging_tile_area_1.default();
if (this.maximumTileSize !== undefined && this.maximumTileSize !== null) {

@@ -109,4 +109,4 @@ rasterizedArea.withMaxTileSize(this.maximumTileSize);

//border tiles in some situations
const minOGT = index_1.default.buildFromLatitudeAndLongitude(this.bboxMin.getLatitude(), this.bboxMin.getLongitude(), this.precision);
const maxOGT = index_1.default.buildFromLatitudeAndLongitude(this.bboxMax.getLatitude(), this.bboxMax.getLongitude(), this.precision);
const minOGT = open_geo_tile_1.default.buildFromLatitudeAndLongitude(this.bboxMin.getLatitude(), this.bboxMin.getLongitude(), this.precision);
const maxOGT = open_geo_tile_1.default.buildFromLatitudeAndLongitude(this.bboxMax.getLatitude(), this.bboxMax.getLongitude(), this.precision);
const minLatitude = open_location_code_typescript_1.default.decode(minOGT.getWrappedOpenLocationCode().getCode()).latitudeCenter - increment;

@@ -165,3 +165,3 @@ const maxLatitude = open_location_code_typescript_1.default.decode(maxOGT.getWrappedOpenLocationCode().getCode()).latitudeCenter + increment;

//latitude and longitude define a tile inside the polygon; add that to area
const ogt = index_1.default.buildFromLatitudeAndLongitude(latitude, longitude, this.precision);
const ogt = open_geo_tile_1.default.buildFromLatitudeAndLongitude(latitude, longitude, this.precision);
rasterizedArea.addTile(ogt);

@@ -168,0 +168,0 @@ }

@@ -6,3 +6,3 @@ "use strict";

*/
const index_1 = require("./index");
const open_geo_tile_1 = require("./open-geo-tile");
class TileArea {

@@ -45,3 +45,3 @@ /**

containsOpenLocationCode(code) {
return this.contains(new index_1.default(code));
return this.contains(new open_geo_tile_1.default(code));
}

@@ -55,3 +55,3 @@ /**

containsLatitudeLongitude(latitude, longitude) {
return this.contains(index_1.default.buildFromLatitudeAndLongitude(latitude, longitude, this.getSmallestTileSize()));
return this.contains(open_geo_tile_1.default.buildFromLatitudeAndLongitude(latitude, longitude, this.getSmallestTileSize()));
}

@@ -58,0 +58,0 @@ }

{
"name": "open-geotiling",
"description": "OpenGeoTiling",
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -9,4 +9,4 @@ "type": "git",

},
"main": "./dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/open-geo-tile.js",
"types": "./dist/open-geo-tile.d.ts",
"author": "Thibaud Giovannetti",

@@ -28,5 +28,5 @@ "scripts": {

"dependencies": {
"open-location-code-typescript": "1.2.1"
"open-location-code-typescript": "1.3.0"
},
"private": false
}
{
"compilerOptions": {
"lib": [
"es6", "dom"
"es6",
"dom"
],
"module": "commonjs",
"noImplicitReturns": true,
"allowJs": true,
"declaration": true,
"outDir": "dist",

@@ -10,0 +11,0 @@ "sourceMap": true,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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