@xylabs/geo 7.0.8 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -977
- package/dist/neutral/index.d.ts +1 -4
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2 -402
- package/dist/neutral/index.mjs.map +3 -3
- package/package.json +16 -5
- package/dist/neutral/GeoJson.d.ts +0 -51
- package/dist/neutral/GeoJson.d.ts.map +0 -1
- package/dist/neutral/GeoJsonModel.d.ts +0 -24
- package/dist/neutral/GeoJsonModel.d.ts.map +0 -1
- package/dist/neutral/LayerBase.d.ts +0 -26
- package/dist/neutral/LayerBase.d.ts.map +0 -1
- package/dist/neutral/mercator/boundingbox/index.d.ts +0 -2
- package/dist/neutral/mercator/boundingbox/index.d.ts.map +0 -1
- package/dist/neutral/mercator/boundingbox/to/boundary.d.ts +0 -8
- package/dist/neutral/mercator/boundingbox/to/boundary.d.ts.map +0 -1
- package/dist/neutral/mercator/boundingbox/to/center.d.ts +0 -9
- package/dist/neutral/mercator/boundingbox/to/center.d.ts.map +0 -1
- package/dist/neutral/mercator/boundingbox/to/index.d.ts +0 -4
- package/dist/neutral/mercator/boundingbox/to/index.d.ts.map +0 -1
- package/dist/neutral/mercator/boundingbox/to/polygon.d.ts +0 -9
- package/dist/neutral/mercator/boundingbox/to/polygon.d.ts.map +0 -1
- package/dist/neutral/mercator/constants.d.ts +0 -6
- package/dist/neutral/mercator/constants.d.ts.map +0 -1
- package/dist/neutral/mercator/index.d.ts +0 -6
- package/dist/neutral/mercator/index.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/from/index.d.ts +0 -3
- package/dist/neutral/mercator/tile/from/index.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/from/point.d.ts +0 -10
- package/dist/neutral/mercator/tile/from/point.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/from/quadkey.d.ts +0 -9
- package/dist/neutral/mercator/tile/from/quadkey.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/index.d.ts +0 -3
- package/dist/neutral/mercator/tile/index.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/to/boundingbox.d.ts +0 -10
- package/dist/neutral/mercator/tile/to/boundingbox.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/to/children.d.ts +0 -9
- package/dist/neutral/mercator/tile/to/children.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/to/geoJson.d.ts +0 -10
- package/dist/neutral/mercator/tile/to/geoJson.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/to/index.d.ts +0 -8
- package/dist/neutral/mercator/tile/to/index.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/to/parent.d.ts +0 -9
- package/dist/neutral/mercator/tile/to/parent.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/to/point.d.ts +0 -9
- package/dist/neutral/mercator/tile/to/point.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/to/quadkey.d.ts +0 -9
- package/dist/neutral/mercator/tile/to/quadkey.d.ts.map +0 -1
- package/dist/neutral/mercator/tile/to/siblings.d.ts +0 -9
- package/dist/neutral/mercator/tile/to/siblings.d.ts.map +0 -1
- package/dist/neutral/mercator/tiles/equal.d.ts +0 -9
- package/dist/neutral/mercator/tiles/equal.d.ts.map +0 -1
- package/dist/neutral/mercator/tiles/from/boundingbox.d.ts +0 -10
- package/dist/neutral/mercator/tiles/from/boundingbox.d.ts.map +0 -1
- package/dist/neutral/mercator/tiles/from/index.d.ts +0 -2
- package/dist/neutral/mercator/tiles/from/index.d.ts.map +0 -1
- package/dist/neutral/mercator/tiles/hasSiblings.d.ts +0 -9
- package/dist/neutral/mercator/tiles/hasSiblings.d.ts.map +0 -1
- package/dist/neutral/mercator/tiles/hasTile.d.ts +0 -9
- package/dist/neutral/mercator/tiles/hasTile.d.ts.map +0 -1
- package/dist/neutral/mercator/tiles/index.d.ts +0 -5
- package/dist/neutral/mercator/tiles/index.d.ts.map +0 -1
- package/dist/neutral/mercator/types.d.ts +0 -34
- package/dist/neutral/mercator/types.d.ts.map +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorBoundingBox } from '../../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Computes the center point of a bounding box as [lng, lat], rounded to the specified decimal places.
|
|
4
|
-
* @param boundingBox - The bounding box to find the center of
|
|
5
|
-
* @param decimal - Number of decimal places for rounding (default 6)
|
|
6
|
-
* @returns A [longitude, latitude] tuple representing the center
|
|
7
|
-
*/
|
|
8
|
-
export declare const boundingBoxToCenter: (boundingBox: MercatorBoundingBox, decimal?: number) => number[];
|
|
9
|
-
//# sourceMappingURL=center.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"center.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/boundingbox/to/center.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,aAAa,mBAAmB,EAAE,gBAAW,aAYhF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/boundingbox/to/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Polygon } from '../../../GeoJsonModel.ts';
|
|
2
|
-
import type { MercatorBoundingBox } from '../../types.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Converts a bounding box to a GeoJSON Polygon geometry.
|
|
5
|
-
* @param box - The bounding box to convert
|
|
6
|
-
* @returns A GeoJSON Polygon representing the bounding box
|
|
7
|
-
*/
|
|
8
|
-
export declare const boundingBoxToPolygon: (box: MercatorBoundingBox) => Polygon;
|
|
9
|
-
//# sourceMappingURL=polygon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/boundingbox/to/polygon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,gBAAgB,CAAA;AAGzE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,KAAK,mBAAmB,KAAG,OAM/D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/mercator/constants.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,QAAA,MAAM,GAAG,QAAgB,CAAA;AACzB,iDAAiD;AACjD,QAAA,MAAM,GAAG,QAAgB,CAAA;AAEzB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mercator/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/from/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MercatorLngLat, MercatorTile } from '../../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a geographic point to the integer Mercator tile containing it at the given zoom level.
|
|
4
|
-
* @param point - The geographic coordinate
|
|
5
|
-
* @param z - The zoom level
|
|
6
|
-
* @returns The tile as [x, y, zoom]
|
|
7
|
-
*/
|
|
8
|
-
declare const tileFromPoint: (point: MercatorLngLat, z: number) => MercatorTile;
|
|
9
|
-
export { tileFromPoint };
|
|
10
|
-
//# sourceMappingURL=point.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/from/point.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAoBlE;;;;;GAKG;AACH,QAAA,MAAM,aAAa,GAAI,OAAO,cAAc,EAAE,GAAG,MAAM,KAAG,YAKzD,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorTile } from '../../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a quadkey string to a Mercator tile [x, y, zoom].
|
|
4
|
-
* @param quadkey - The quadkey string to decode
|
|
5
|
-
* @returns The tile as [x, y, zoom]
|
|
6
|
-
*/
|
|
7
|
-
declare const tileFromQuadkey: (quadkey: string) => MercatorTile;
|
|
8
|
-
export { tileFromQuadkey };
|
|
9
|
-
//# sourceMappingURL=quadkey.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quadkey.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/from/quadkey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;;GAIG;AACH,QAAA,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,YAiB1C,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tile/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MercatorTile } from '../../types.ts';
|
|
2
|
-
import { MercatorBoundingBox } from '../../types.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Converts a Mercator tile to its geographic bounding box.
|
|
5
|
-
* @param tile - The tile as [x, y, zoom]
|
|
6
|
-
* @returns The bounding box covering the tile's geographic extent
|
|
7
|
-
*/
|
|
8
|
-
declare const tileToBoundingBox: (tile: MercatorTile) => MercatorBoundingBox;
|
|
9
|
-
export { tileToBoundingBox };
|
|
10
|
-
//# sourceMappingURL=boundingbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boundingbox.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/boundingbox.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAkB,MAAM,gBAAgB,CAAA;AAWpE;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,GAAI,MAAM,YAAY,KAAG,mBAM/C,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorTile } from '../../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the four child tiles at one zoom level higher.
|
|
4
|
-
* @param tile - The parent tile as [x, y, zoom]
|
|
5
|
-
* @returns An array of four child tiles at zoom + 1
|
|
6
|
-
*/
|
|
7
|
-
declare const tileToChildren: (tile: MercatorTile) => MercatorTile[];
|
|
8
|
-
export { tileToChildren };
|
|
9
|
-
//# sourceMappingURL=children.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"children.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/children.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;;GAIG;AACH,QAAA,MAAM,cAAc,GAAI,MAAM,YAAY,KAAG,YAAY,EAOxD,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Polygon } from '../../../GeoJsonModel.ts';
|
|
2
|
-
import type { MercatorTile } from '../../types.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Converts a Mercator tile to a GeoJSON Polygon geometry.
|
|
5
|
-
* @param tile - The tile as [x, y, zoom]
|
|
6
|
-
* @returns A GeoJSON Polygon representing the tile's geographic extent
|
|
7
|
-
*/
|
|
8
|
-
declare const tileToGeoJson: (tile: MercatorTile) => Polygon;
|
|
9
|
-
export { tileToGeoJson };
|
|
10
|
-
//# sourceMappingURL=geoJson.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geoJson.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/geoJson.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlD;;;;GAIG;AACH,QAAA,MAAM,aAAa,GAAI,MAAM,YAAY,KAAG,OAe3C,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { tileToBoundingBox } from './boundingbox.ts';
|
|
2
|
-
export { tileToChildren } from './children.ts';
|
|
3
|
-
export { tileToGeoJson } from './geoJson.ts';
|
|
4
|
-
export { tileToParent } from './parent.ts';
|
|
5
|
-
export { tileToPoint } from './point.ts';
|
|
6
|
-
export { tileToQuadkey } from './quadkey.ts';
|
|
7
|
-
export { tileToSiblings } from './siblings.ts';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorTile } from '../../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the parent tile at one zoom level lower.
|
|
4
|
-
* @param tile - The tile as [x, y, zoom]
|
|
5
|
-
* @returns The parent tile at zoom - 1
|
|
6
|
-
*/
|
|
7
|
-
declare const tileToParent: (tile: MercatorTile) => MercatorTile;
|
|
8
|
-
export { tileToParent };
|
|
9
|
-
//# sourceMappingURL=parent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parent.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/parent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;;GAIG;AACH,QAAA,MAAM,YAAY,GAAI,MAAM,YAAY,KAAG,YAE1C,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorLngLat, MercatorTile } from '../../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the center point of a Mercator tile.
|
|
4
|
-
* @param tile - The tile as [x, y, zoom]
|
|
5
|
-
* @returns The center coordinate as a MercatorLngLat
|
|
6
|
-
*/
|
|
7
|
-
declare const tileToPoint: (tile: MercatorTile) => MercatorLngLat;
|
|
8
|
-
export { tileToPoint };
|
|
9
|
-
//# sourceMappingURL=point.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlE;;;;GAIG;AACH,QAAA,MAAM,WAAW,GAAI,MAAM,YAAY,KAAG,cAIzC,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorTile } from '../../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Converts a Mercator tile to its quadkey string representation.
|
|
4
|
-
* @param param0 - The tile as [tileX, tileY, tileZoom]
|
|
5
|
-
* @returns The quadkey string encoding the tile's position and zoom
|
|
6
|
-
*/
|
|
7
|
-
declare const tileToQuadkey: ([tileX, tileY, tileZoom]: MercatorTile) => string;
|
|
8
|
-
export { tileToQuadkey };
|
|
9
|
-
//# sourceMappingURL=quadkey.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quadkey.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/quadkey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;;GAIG;AACH,QAAA,MAAM,aAAa,GAAI,0BAA0B,YAAY,KAAG,MAU/D,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorTile } from '../../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the four sibling tiles (children of the parent tile) for the given tile.
|
|
4
|
-
* @param tile - The tile as [x, y, zoom]
|
|
5
|
-
* @returns An array of four sibling tiles at the same zoom level
|
|
6
|
-
*/
|
|
7
|
-
declare const tileToSiblings: (tile: MercatorTile) => MercatorTile[];
|
|
8
|
-
export { tileToSiblings };
|
|
9
|
-
//# sourceMappingURL=siblings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"siblings.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tile/to/siblings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAIlD;;;;GAIG;AACH,QAAA,MAAM,cAAc,GAAI,MAAM,YAAY,KAAG,YAAY,EAExD,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorTile } from '../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Checks whether two Mercator tiles are equal by comparing their x, y, and zoom values.
|
|
4
|
-
* @param param0 - The first tile as [x, y, zoom]
|
|
5
|
-
* @param param1 - The second tile as [x, y, zoom]
|
|
6
|
-
* @returns True if both tiles have identical coordinates and zoom
|
|
7
|
-
*/
|
|
8
|
-
export declare const tilesEqual: ([x1, y1, zoom1]: MercatorTile, [x2, y2, zoom2]: MercatorTile) => boolean;
|
|
9
|
-
//# sourceMappingURL=equal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tiles/equal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAoB,iBAAiB,YAAY,EAAE,iBAAiB,YAAY,KAAG,OAEzG,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MercatorBoundingBox, MercatorTile } from '../../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Returns all Mercator tiles that intersect the given bounding box at the specified zoom level.
|
|
4
|
-
* @param box - The geographic bounding box
|
|
5
|
-
* @param zoom - The zoom level
|
|
6
|
-
* @returns An array of tiles covering the bounding box
|
|
7
|
-
*/
|
|
8
|
-
declare const tilesFromBoundingBox: (box: MercatorBoundingBox, zoom: number) => MercatorTile[];
|
|
9
|
-
export { tilesFromBoundingBox };
|
|
10
|
-
//# sourceMappingURL=boundingbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boundingbox.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tiles/from/boundingbox.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEvE;;;;;GAKG;AACH,QAAA,MAAM,oBAAoB,GAAI,KAAK,mBAAmB,EAAE,MAAM,MAAM,KAAG,YAAY,EA+BlF,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mercator/tiles/from/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorTile } from '../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Checks whether all four siblings of the given tile exist in the tile array.
|
|
4
|
-
* @param tiles - The array of tiles to search
|
|
5
|
-
* @param tile - The tile whose siblings to check for
|
|
6
|
-
* @returns True if all siblings are present in the array
|
|
7
|
-
*/
|
|
8
|
-
export declare const hasSiblings: (tiles: MercatorTile[], tile: MercatorTile) => boolean;
|
|
9
|
-
//# sourceMappingURL=hasSiblings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hasSiblings.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tiles/hasSiblings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,YAAY,EAAE,EAAE,MAAM,YAAY,YAMpE,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MercatorTile } from '../types.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Checks whether a specific tile exists in the given tile array.
|
|
4
|
-
* @param tiles - The array of tiles to search
|
|
5
|
-
* @param tile - The tile to look for
|
|
6
|
-
* @returns True if the tile is found in the array
|
|
7
|
-
*/
|
|
8
|
-
export declare const tilesHasTile: (tiles: MercatorTile[], tile: MercatorTile) => boolean;
|
|
9
|
-
//# sourceMappingURL=hasTile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hasTile.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tiles/hasTile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,EAAE,MAAM,YAAY,YAKrE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mercator/tiles/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** A Mercator tile represented as [x, y, zoom]. */
|
|
2
|
-
type MercatorTile = readonly [x: number, y: number, zoom: number];
|
|
3
|
-
/** An ordered array of MercatorLngLat points forming a boundary. */
|
|
4
|
-
type MercatorBoundary = MercatorLngLat[];
|
|
5
|
-
type MercatorLngLatLike = MercatorLngLat | readonly [lng: number, lat: number] | {
|
|
6
|
-
lat: number;
|
|
7
|
-
lng: number;
|
|
8
|
-
};
|
|
9
|
-
/** A Mercator coordinate. */
|
|
10
|
-
declare class MercatorLngLat {
|
|
11
|
-
lat: number;
|
|
12
|
-
lng: number;
|
|
13
|
-
constructor(lng: number, lat: number);
|
|
14
|
-
toArray(): [lng: number, lat: number];
|
|
15
|
-
}
|
|
16
|
-
/** A Mercator bounding box. */
|
|
17
|
-
declare class MercatorBoundingBox {
|
|
18
|
-
private readonly ne;
|
|
19
|
-
private readonly sw;
|
|
20
|
-
constructor(sw?: MercatorLngLatLike, ne?: MercatorLngLatLike);
|
|
21
|
-
contains(point: MercatorLngLatLike): boolean;
|
|
22
|
-
getCenter(): MercatorLngLat;
|
|
23
|
-
getEast(): number;
|
|
24
|
-
getNorth(): number;
|
|
25
|
-
getNorthEast(): MercatorLngLat;
|
|
26
|
-
getNorthWest(): MercatorLngLat;
|
|
27
|
-
getSouth(): number;
|
|
28
|
-
getSouthEast(): MercatorLngLat;
|
|
29
|
-
getSouthWest(): MercatorLngLat;
|
|
30
|
-
getWest(): number;
|
|
31
|
-
}
|
|
32
|
-
export { MercatorBoundingBox, MercatorLngLat };
|
|
33
|
-
export type { MercatorBoundary, MercatorLngLatLike, MercatorTile, };
|
|
34
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/mercator/types.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,KAAK,YAAY,GAAG,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;AACjE,oEAAoE;AACpE,KAAK,gBAAgB,GAAG,cAAc,EAAE,CAAA;AAExC,KAAK,kBAAkB,GAAG,cAAc,GAAG,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAS7G,6BAA6B;AAC7B,cAAM,cAAc;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;gBAEC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAKpC,OAAO,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC;CAGtC;AAED,+BAA+B;AAC/B,cAAM,mBAAmB;IACvB,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAgB;IACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAgB;gBAEvB,EAAE,CAAC,EAAE,kBAAkB,EAAE,EAAE,CAAC,EAAE,kBAAkB;IAK5D,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO;IAW5C,SAAS,IAAI,cAAc;IAO3B,OAAO,IAAI,MAAM;IAIjB,QAAQ,IAAI,MAAM;IAIlB,YAAY,IAAI,cAAc;IAI9B,YAAY,IAAI,cAAc;IAI9B,QAAQ,IAAI,MAAM;IAIlB,YAAY,IAAI,cAAc;IAI9B,YAAY,IAAI,cAAc;IAI9B,OAAO,IAAI,MAAM;CAGlB;AAED,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,CAAA;AAC9C,YAAY,EACV,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,GACnD,CAAA"}
|