UNPKG

open-vector-tile

Version:

This library reads/writes Open Vector Tiles

28 lines 1.1 kB
import { BaseVectorLayer } from './vectorLayer.js'; import { VectorTile } from '../vectorTile.js'; import type { S2JSONLayerMap } from './vectorLayer.js'; import type { S2JSONTile } from '../vectorTile.spec.js'; /** * Base Vector Tile * This is an intermediary for storing feature data in the Open Vector Tile format. * Convert from either a Mapbox vector tile or GeoJSON data. */ export declare class BaseVectorTile { layers: Record<string, BaseVectorLayer>; /** * @param layers - the layers in the tile */ constructor(layers?: Record<string, BaseVectorLayer>); /** * @param tile - the tile data to convert. Only Mapobx vector tiles are supported * @returns - The converted Base Vector Tile */ static fromVectorTile(tile: VectorTile): BaseVectorTile; /** * @param tile - tile S2JSON data to convert * @param layerMap - guide on how to convert the layers * @returns - The converted Base Vector Tile */ static fromS2JSONTile(tile: S2JSONTile, layerMap: S2JSONLayerMap): BaseVectorTile; } //# sourceMappingURL=vectorTile.d.ts.map