UNPKG

ol

Version:

OpenLayers mapping library

95 lines 3.43 kB
export default VectorTile; declare class VectorTile extends Tile { /** * @param {import("./tilecoord.js").TileCoord} tileCoord Tile coordinate. * @param {TileState} state State. * @param {string} src Data source url. * @param {import("./format/Feature.js").default} format Feature format. * @param {import("./Tile.js").LoadFunction} tileLoadFunction Tile load function. * @param {import("./Tile.js").Options=} opt_options Tile options. */ constructor(tileCoord: number[], state: { IDLE: number; LOADING: number; LOADED: number; ERROR: number; EMPTY: number; }, src: string, format: import("./format/Feature.js").default, tileLoadFunction: (arg0: Tile, arg1: string) => void, opt_options?: import("./Tile.js").Options); /** * Extent of this tile; set by the source. * @type {import("./extent.js").Extent} */ extent: import("./extent.js").Extent; /** * @private * @type {import("./format/Feature.js").default} */ private format_; /** * @private * @type {Array<import("./Feature.js").default>} */ private features_; /** * @private * @type {import("./featureloader.js").FeatureLoader} */ private loader_; /** * Feature projection of this tile; set by the source. * @type {import("./proj/Projection.js").default} */ projection: import("./proj/Projection.js").default; /** * Resolution of this tile; set by the source. * @type {number} */ resolution: number; /** * @private * @type {import("./Tile.js").LoadFunction} */ private tileLoadFunction_; /** * @private * @type {string} */ private url_; /** * Get the feature format assigned for reading this tile's features. * @return {import("./format/Feature.js").default} Feature format. * @api */ getFormat(): import("./format/Feature.js").default; /** * Get the features for this tile. Geometries will be in the view projection. * @return {Array<import("./Feature.js").FeatureLike>} Features. * @api */ getFeatures(): (import("./render/Feature.js").default | import("./Feature.js").default<any>)[]; /** * Handler for successful tile load. * @param {Array<import("./Feature.js").default>} features The loaded features. * @param {import("./proj/Projection.js").default} dataProjection Data projection. */ onLoad(features: import("./Feature.js").default<any>[], dataProjection: import("./proj/Projection.js").default): void; /** * Handler for tile load errors. */ onError(): void; /** * Function for use in an {@link module:ol/source/VectorTile~VectorTile}'s `tileLoadFunction`. * Sets the features for the tile. * @param {Array<import("./Feature.js").default>} features Features. * @api */ setFeatures(features: import("./Feature.js").default<any>[]): void; /** * Set the feature loader for reading this tile's features. * @param {import("./featureloader.js").FeatureLoader} loader Feature loader. * @api */ setLoader(loader: (this: VectorTile | import("./source/Vector.js").default<any>, arg1: number[], arg2: number, arg3: import("./proj/Projection.js").default) => void): void; } import Tile from "./Tile.js"; //# sourceMappingURL=VectorTile.d.ts.map