flatgeobuf
Version:
A performant binary encoding for geographic data
16 lines (15 loc) • 1.17 kB
TypeScript
import type Feature from 'ol/Feature.js';
import type { FeatureLoader } from 'ol/featureloader.js';
import type { Geometry } from 'ol/geom.js';
import type VectorSource from 'ol/source/Vector.js';
import type { LoadingStrategy } from 'ol/source/Vector.js';
import type VectorTileSource from 'ol/source/VectorTile.js';
import type { LoadFunction } from 'ol/Tile.js';
import type { TileCoord } from 'ol/tilecoord.js';
import type { HeaderMetaFn } from './generic.js';
import type { Rect } from './packedrtree.js';
export declare function serialize(features: Feature[]): Uint8Array;
export declare function deserialize(input: Uint8Array | ReadableStream | string, rect?: Rect, headerMetaFn?: HeaderMetaFn, nocache?: boolean, headers?: HeadersInit): AsyncGenerator<Feature>;
export declare function createLoader(source: VectorSource, url: string, srs?: string, strategy?: LoadingStrategy, clear?: boolean, headers?: HeadersInit): FeatureLoader<Feature<Geometry>>;
export declare const tileUrlFunction: (tileCoord: TileCoord) => string;
export declare function createTileLoadFunction(source: VectorTileSource, url: string, srs?: string, headers?: HeadersInit): LoadFunction;