Files
DefinitelyTyped/types/ol/featureloader.d.ts
2019-07-01 10:16:25 -07:00

11 lines
703 B
TypeScript

import { Extent } from './extent';
import FeatureFormat from './format/Feature';
import Projection from './proj/Projection';
import VectorSource from './source/Vector';
import VectorTile from './VectorTile';
export type FeatureLoader = ((this: (VectorSource | VectorTile), p0: Extent, p1: number, p2: Projection) => void);
export type FeatureUrlFunction = ((p0: Extent, p1: number, p2: Projection) => string);
export function loadFeaturesXhr(url: string | FeatureUrlFunction, format: FeatureFormat, success: (() => void) | (() => void), failure: ((this: VectorSource) => void) | (() => void)): FeatureLoader;
export function xhr(url: string | FeatureUrlFunction, format: FeatureFormat): FeatureLoader;