@nativescript-community/ui-carto
Version:
NativeScript plugin for CARTO Mobile SDK
72 lines (71 loc) • 4.84 kB
TypeScript
import { Layer, TileLayer } from '.';
import { Projection } from '../projections';
import { VectorElement } from '../vectorelements';
import { MBVectorTileDecoder, VectorTileDecoder } from '../vectortiles';
import { ClusteredVectorLayerLayerOptions, VectorEditEventListener as IVectorEditEventListener, VectorElementEventListener as IVectorElementEventListener, VectorTileEventListener as IVectorTileEventListener, VectorTileRenderOrder as IVectorTileRenderOrder, VectorLayerOptions, VectorTileLayerOptions } from './vector';
export { VectorTileDecoder };
export declare const VectorTileRenderOrder: {
readonly HIDDEN: com.carto.layers.VectorTileRenderOrder;
readonly LAYER: com.carto.layers.VectorTileRenderOrder;
readonly LAST: com.carto.layers.VectorTileRenderOrder;
};
export declare const VectorElementDragResult: {
readonly IGNORE: com.carto.layers.VectorElementDragResult;
readonly DELETE: com.carto.layers.VectorElementDragResult;
readonly MODIFY: com.carto.layers.VectorElementDragResult;
readonly STOP: com.carto.layers.VectorElementDragResult;
};
export declare abstract class BaseVectorTileLayer<T extends com.carto.layers.VectorTileLayer, U extends VectorTileLayerOptions> extends TileLayer<T, U> {
listenerProjection?: Projection;
listener?: IVectorTileEventListener;
nListener?: com.akylas.carto.additions.AKVectorTileEventListener | com.carto.layers.VectorTileEventListener;
layerBlendingSpeed: number;
labelBlendingSpeed: number;
tileCacheCapacity: number;
clickRadius: number;
labelRenderOrder: IVectorTileRenderOrder;
buildingRenderOrder: IVectorTileRenderOrder;
rendererLayerFilter: string;
clickHandlerLayerFilter: string;
constructor(options: any);
setVectorTileEventListener(listener: IVectorTileEventListener | any, projection?: Projection, nativeClass?: typeof com.akylas.carto.additions.AKVectorTileEventListener): void;
onTileClicked(info: com.carto.ui.VectorTileClickInfo): any;
getTileDecoder(): VectorTileDecoder | MBVectorTileDecoder;
}
export declare class VectorTileLayer extends BaseVectorTileLayer<com.carto.layers.VectorTileLayer, VectorTileLayerOptions> {
createNative(options: VectorTileLayerOptions): com.carto.layers.VectorTileLayer;
}
export declare abstract class BaseVectorLayer<T extends com.carto.layers.VectorLayer, U extends VectorLayerOptions> extends Layer<T, U> {
projection?: Projection;
elementListener?: IVectorElementEventListener;
nElementListener?: com.akylas.carto.additions.AKVectorElementEventListener;
constructor(options: any);
setVectorElementEventListener(listener: IVectorElementEventListener, projection?: Projection, nativeClass?: typeof com.akylas.carto.additions.AKVectorElementEventListener): void;
onElementClicked(info: com.carto.ui.VectorElementClickInfo): any;
}
export declare class VectorLayer extends BaseVectorLayer<com.carto.layers.VectorLayer, VectorLayerOptions> {
createNative(options: VectorLayerOptions): com.carto.layers.VectorLayer;
}
export declare class EditableVectorLayer extends BaseVectorLayer<com.carto.layers.EditableVectorLayer, VectorLayerOptions> {
editListener?: IVectorEditEventListener;
nEditListener?: com.akylas.carto.additions.AKVectorEditEventListener;
constructor(options: any);
createNative(options: VectorLayerOptions): com.carto.layers.EditableVectorLayer;
setSelectedVectorElement(element: any): void;
setVectorEditEventListener(listener: IVectorEditEventListener, projection?: Projection, nativeClass?: typeof com.akylas.carto.additions.AKVectorEditEventListener): void;
onDragEnd(dragInfo: com.carto.ui.VectorElementDragInfo): com.carto.layers.VectorElementDragResult;
onDragMove(dragInfo: com.carto.ui.VectorElementDragInfo): com.carto.layers.VectorElementDragResult;
onDragStart(dragInfo: com.carto.ui.VectorElementDragInfo): com.carto.layers.VectorElementDragResult;
onElementDelete(element: com.carto.vectorelements.VectorElement): void;
onElementDeselected(element: com.carto.vectorelements.VectorElement): void;
onElementModify(element: com.carto.vectorelements.VectorElement, geometry: com.carto.geometry.Geometry): void;
onElementSelect(element: com.carto.vectorelements.VectorElement): any;
onSelectDragPointStyle(element: com.carto.vectorelements.VectorElement, dragPointStyle: com.carto.layers.VectorElementDragPointStyle): any;
}
export declare class ClusteredVectorLayer extends BaseVectorLayer<com.carto.layers.ClusteredVectorLayer, ClusteredVectorLayerLayerOptions> {
createNative(options: ClusteredVectorLayerLayerOptions): com.carto.layers.ClusteredVectorLayer;
minimumClusterDistance: number;
maximumClusterZoom: number;
animatedClusters: boolean;
expandCluster(element: VectorElement<any, any>, px: number): void;
}