@deck.gl/carto
Version:
CARTO official integration with Deck.gl. Build geospatial applications using CARTO and Deck.gl.
39 lines • 1.74 kB
TypeScript
import { DefaultProps, Layer, LayersList } from '@deck.gl/core';
import { MVTLayer, MVTLayerProps, _Tile2DHeader, _TileLoadProps as TileLoadProps } from '@deck.gl/geo-layers';
import { GeoJsonLayer } from '@deck.gl/layers';
import type { TilejsonResult } from '@carto/api-client';
/** All properties supported by VectorTileLayer. */
export type VectorTileLayerProps<FeaturePropertiesT = unknown> = _VectorTileLayerProps & Omit<MVTLayerProps<FeaturePropertiesT>, 'data'>;
/** Properties added by VectorTileLayer. */
type _VectorTileLayerProps = {
data: null | TilejsonResult | Promise<TilejsonResult>;
/**
* If true, create labels for lines and polygons.
* Specify uniqueIdProperty to only create a single label for each unique feature.
*/
autoLabels?: boolean | {
uniqueIdProperty: string;
};
};
export default class VectorTileLayer<FeaturePropertiesT = any, ExtraProps extends {} = {}> extends MVTLayer<FeaturePropertiesT, Required<_VectorTileLayerProps> & ExtraProps> {
static layerName: string;
static defaultProps: DefaultProps<VectorTileLayerProps<unknown>>;
state: MVTLayer['state'] & {
mvt: boolean;
};
constructor(...propObjects: VectorTileLayerProps<FeaturePropertiesT>[]);
initializeState(): void;
updateState(parameters: any): void;
getLoadOptions(): any;
getTileData(tile: TileLoadProps): Promise<any>;
renderSubLayers(props: VectorTileLayer['props'] & {
id: string;
data: any;
_offset: number;
tile: _Tile2DHeader;
}): GeoJsonLayer | GeoJsonLayer[] | null;
renderLayers(): Layer | null | LayersList;
protected _isWGS84(): boolean;
}
export {};
//# sourceMappingURL=vector-tile-layer.d.ts.map