UNPKG

@nativescript-community/ui-carto

Version:

NativeScript plugin for CARTO Mobile SDK

30 lines (29 loc) 1.32 kB
import { TileDataSource } from '../datasources'; import { LayerOptions, TileLayerOptions } from '.'; import { BaseLayer } from './index.common'; export declare const TileSubstitutionPolicy: { readonly TILE_SUBSTITUTION_POLICY_ALL: com.carto.layers.TileSubstitutionPolicy; readonly TILE_SUBSTITUTION_POLICY_VISIBLE: com.carto.layers.TileSubstitutionPolicy; readonly TILE_SUBSTITUTION_POLICY_NONE: com.carto.layers.TileSubstitutionPolicy; }; export declare abstract class Layer<T extends com.carto.layers.Layer, 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 com.carto.layers.TileLayer, U extends TileLayerOptions> extends Layer<T, U> { preloading: boolean; synchronizedRefresh: boolean; zoomLevelBias: number; maxOverzoomLevel: number; maxUnderzoomLevel: number; tileSubstitutionPolicy: any; clearTileCaches(all: boolean): void; get dataSource(): TileDataSource<any, any>; set dataSource(value: TileDataSource<any, any>); get projection(): any; }