@nativescript-community/ui-carto
Version:
NativeScript plugin for CARTO Mobile SDK
30 lines (29 loc) • 1.16 kB
TypeScript
import { BaseLayer } from './index.common';
import { LayerOptions, TileLayerOptions } from '.';
import { TileDataSource } from '../datasources';
export declare enum TileSubstitutionPolicy {
TILE_SUBSTITUTION_POLICY_ALL = 0,
TILE_SUBSTITUTION_POLICY_VISIBLE = 1,
TILE_SUBSTITUTION_POLICY_NONE = 2
}
export declare abstract class Layer<T extends NTLayer, U extends LayerOptions> extends BaseLayer<T, U> {
get visibleZoomRange(): [number, number];
set visibleZoomRange(value: [number, number]);
get minVisibleZoom(): number;
set minVisibleZoom(value: number);
get maxVisibleZoom(): number;
set maxVisibleZoom(value: number);
refresh(): void;
}
export declare abstract class TileLayer<T extends NTTileLayer, U extends TileLayerOptions> extends Layer<T, U> {
preloading: boolean;
synchronizedRefresh: boolean;
zoomLevelBias: number;
maxOverzoomLevel: number;
maxUnderzoomLevel: number;
tileSubstitutionPolicy: TileSubstitutionPolicy;
get dataSource(): TileDataSource<any, any>;
set dataSource(value: TileDataSource<any, any>);
get projection(): any;
clearTileCaches(all: boolean): void;
}