Files
Projekt-Visualisierung/node_modules/@maplibre/vt-pbf/dist/lib/geojson_wrapper.d.ts
2026-04-15 17:08:39 +02:00

21 lines
928 B
TypeScript

import type { TileFeature, AnyProps } from 'supercluster';
import type { GeoJSONVTFeature } from '@maplibre/geojson-vt';
import type { VectorTileFeatureLike, VectorTileLayerLike, VectorTileLike } from "./types";
export { VectorTileFeatureLike, VectorTileLayerLike, VectorTileLike };
export type Feature = TileFeature<AnyProps, AnyProps> | GeoJSONVTFeature;
export interface GeoJSONOptions {
version: number;
extent: number;
}
export declare const GEOJSON_TILE_LAYER_NAME = "_geojsonTileLayer";
export declare class GeoJSONWrapper implements VectorTileLayerLike {
layers: Record<string, VectorTileLayerLike>;
features: Feature[];
version: VectorTileLayerLike['version'];
name: VectorTileLayerLike['name'];
extent: VectorTileLayerLike['extent'];
length: VectorTileLayerLike['length'];
constructor(features: Feature[], options?: GeoJSONOptions);
feature(i: number): VectorTileFeatureLike;
}