Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/mapbox__vector-tile) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
npm install --save @types/mapbox__vector-tile
Summary
This package contains type definitions for @mapbox/vector-tile (https://github.com/mapbox/vector-tile-js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__vector-tile.
index.d.ts
import Pbf = require("pbf");
import { Feature } from "geojson";
import Point = require("@mapbox/point-geometry");
export class VectorTile {
constructor(pbf: Pbf);
layers: { [_: string]: VectorTileLayer };
}
export class VectorTileFeature {
static types: ["Unknown", "Point", "LineString", "Polygon"];
extent: number;
type: 0 | 1 | 2 | 3;
id: number;
properties: { [_: string]: string | number | boolean };
loadGeometry(): Point[][];
toGeoJSON(x: number, y: number, z: number): Feature;
bbox?(): [number, number, number, number];
}
export class VectorTileLayer {
constructor(pbf: Pbf);
version?: number;
name: string;
extent: number;
length: number;
feature(featureIndex: number): VectorTileFeature;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/geojson, @types/mapbox__point-geometry, @types/pbf
Credits
These definitions were written by Mathieu Maes, and Harel Mazor.