import { DataSource, TileDataSourceOptions } from '.'; import { IProjection } from '../projections'; import { VectorElement, VectorElementVector } from '../vectorelements'; import { FeatureCollection } from '../geometry/feature'; import { GeometrySimplifier } from '../geometry/simplifier'; import { DefaultLatLonKeys, MapBounds } from '../core'; export interface VectorDataSourceOptions extends TileDataSourceOptions { projection: IProjection; } export interface LocalVectorDataSourceOptions extends VectorDataSourceOptions {} export abstract class VectorDataSource extends DataSource {} export class LocalVectorDataSource extends VectorDataSource { add(element: VectorElement); remove(element: VectorElement); addAll(element: VectorElementVector); setGeometrySimplifier(simplifier: GeometrySimplifier); clear(); addFeatureCollection(featureCollection: FeatureCollection, style: any); getDataExtent(): MapBounds; }