UNPKG

@nativescript-community/ui-carto

Version:

NativeScript plugin for CARTO Mobile SDK

75 lines (74 loc) 3.93 kB
import { Layer, TileLayer } from '.'; import { Projection } from '../projections'; import { VectorElement } from '../vectorelements'; import { MBVectorTileDecoder } from '../vectortiles'; import { ClusteredVectorLayerLayerOptions, VectorEditEventListener as IVectorEditEventListener, VectorElementEventListener as IVectorElementEventListener, VectorTileEventListener as IVectorTileEventListener, VectorTileRenderOrder as IVectorTileRenderOrder, VectorLayerOptions, VectorTileLayerOptions } from './vector'; export declare enum VectorTileRenderOrder { HIDDEN = -1, LAYER = 0, LAST = 1 } export declare enum VectorElementDragResult { IGNORE = 0, STOP = 1, MODIFY = 2, DELETE = 3 } export declare class NTVectorElementEventListenerImpl extends AKVectorElementEventListener { private _layer; private _owner; private projection?; static initWithOwner(owner: WeakRef<IVectorElementEventListener>, layer: WeakRef<BaseVectorLayer<any, any>>, projection?: Projection): NTVectorElementEventListenerImpl; onVectorElementClickedThreaded(info: NTVectorElementClickInfo): boolean; } export declare class NTVectorTileEventListenerImpl extends AKVectorTileEventListener { private _layer; private _owner; private projection?; static initWithOwner(owner: WeakRef<IVectorTileEventListener>, layer: any, projection?: Projection): NTVectorTileEventListenerImpl; onVectorTileClickedThreaded(info: NTVectorTileClickInfo): boolean; } export declare abstract class BaseVectorTileLayer<T extends NTVectorTileLayer, U extends VectorTileLayerOptions> extends TileLayer<T, U> { layerBlendingSpeed: number; labelBlendingSpeed: number; tileCacheCapacity: number; clickRadius: number; labelRenderOrder: IVectorTileRenderOrder; buildingRenderOrder: IVectorTileRenderOrder; rendererLayerFilter: string; clickHandlerLayerFilter: string; listener?: IVectorTileEventListener; nListener?: NTVectorTileEventListener; listenerProjection?: Projection; constructor(options: any); setVectorTileEventListener(listener: IVectorTileEventListener | any, projection?: Projection, nativeClass?: typeof NTVectorTileEventListenerImpl): void; getTileDecoder(): import("../vectortiles").VectorTileDecoder | MBVectorTileDecoder; } export declare class VectorTileLayer extends BaseVectorTileLayer<NTVectorTileLayer, VectorTileLayerOptions> { createNative(options: VectorTileLayerOptions): NTVectorTileLayer; } export declare abstract class BaseVectorLayer<T extends NTVectorLayer, U extends VectorLayerOptions> extends Layer<T, U> { projection?: Projection; elementListener?: IVectorElementEventListener; nElementListener?: NTVectorElementEventListener; constructor(options: any); setVectorElementEventListener(listener: IVectorElementEventListener, projection?: Projection, nativeClass?: typeof NTVectorElementEventListenerImpl): void; } export declare class VectorLayer extends BaseVectorLayer<NTVectorLayer, VectorLayerOptions> { createNative(options: VectorLayerOptions): NTVectorLayer; } export declare class EditableVectorLayer extends BaseVectorLayer<NTEditableVectorLayer, VectorLayerOptions> { editListener?: IVectorEditEventListener; nEditListener?: AKVectorEditEventListener; constructor(options: any); createNative(options: VectorLayerOptions): NTEditableVectorLayer; setSelectedVectorElement(element: any): void; setVectorEditEventListener(listener: IVectorEditEventListener, projection?: Projection): void; } export declare class ClusteredVectorLayer extends BaseVectorLayer<NTClusteredVectorLayer, ClusteredVectorLayerLayerOptions> { createNative(options: ClusteredVectorLayerLayerOptions): NTClusteredVectorLayer; minimumClusterDistance: number; maximumClusterZoom: number; animatedClusters: boolean; expandCluster(element: VectorElement<any, any>, px: number): void; }