
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@xylabs/geo
Advanced tools
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
@xylabs/geo
new GeoJson(quadkey): GeoJson;
string
GeoJson
static featureCollection(features): FeatureCollection;
Feature<Geometry, GeoJsonProperties>[]
FeatureCollection
static featuresSource(data): GeoJSONSourceSpecification;
FeatureCollection
GeoJSONSourceSpecification
static geometryFeature(geometry): Feature;
Geometry
Feature
center(): LngLat;
LngLat
point(): Point;
Point
pointFeature(): Feature;
Feature
pointFeatureCollection(): FeatureCollection;
FeatureCollection
pointSource(): GeoJSONSourceSpecification;
GeoJSONSourceSpecification
polygon(): Polygon;
Polygon
polygonFeature(): Feature;
Feature
polygonFeatureCollection(): FeatureCollection;
FeatureCollection
polygonSource(): GeoJSONSourceSpecification;
GeoJSONSourceSpecification
zoom(): number;
number
T extends MapBox.Layer
new LayerBase<T>(id, source): LayerBase<T>;
string
string
LayerBase<T>
id: string;
source: string;
update(map, show): void;
Map$1
boolean = true
void
abstract buildLayer(): T;
T
LngLatBoundsnew MercatorBoundingBox(sw?, ne?): MercatorBoundingBox;
[number, number, number, number] | LngLatLike | [LngLatLike, LngLatLike]
LngLatLike
MercatorBoundingBox
MapBox.LngLatBounds.constructor
LngLatnew MercatorLngLat(lng, lat): MercatorLngLat;
number
number
MercatorLngLat
MapBox.LngLat.constructor
function boundingBoxToBoundary(box): MercatorBoundary;
function boundingBoxToCenter(boundingBox, decimal): number[];
number = 6
number[]
function boundingBoxToPolygon(box): Polygon;
Polygon
function hasSiblings(tiles, tile): boolean;
boolean
function tileFromPoint(point, z): number[];
number
number[]
function tileFromQuadkey(quadkey): number[];
string
number[]
function tileToBoundingBox(tile): MercatorBoundingBox;
function tileToChildren(tile): number[][];
number[][]
function tileToGeoJson(tile): Polygon;
Polygon
function tileToParent(tile): MercatorTile;
function tileToPoint(tile): MercatorLngLat;
function tileToQuadkey(tile): string;
string
function tileToSiblings(tile): MercatorTile[];
function tilesEqual(tile1, tile2): boolean;
boolean
function tilesFromBoundingBox(box, zoom): MercatorTile[];
number
function tilesHasTile(tiles, tile): boolean;
boolean
type MercatorBoundary = MercatorLngLat[];
type MercatorTile = number[];
const d2r: number;
const r2d: number;
Part of sdk-js
See the LICENSE file for license details
FAQs
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
We found that @xylabs/geo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.