UNPKG

@nativescript-community/ui-carto

Version:

NativeScript plugin for CARTO Mobile SDK

44 lines (43 loc) 2.48 kB
import { HillshadeRasterTileLayerOptions, RasterTileEventListener as IRasterTileEventListener, RasterTileFilterMode as IRasterTileFilterMode, RasterTileLayerOptions } from './raster'; import { RasterTileLayerBase } from './raster.common'; import { Projection } from '../projections'; import { DoubleVector, MapPos, MapPosVector, MapVec } from '../core'; import { Color } from '@nativescript/core'; export declare const RasterTileFilterMode: { readonly RASTER_TILE_FILTER_MODE_NEAREST: NTRasterTileFilterMode; readonly RASTER_TILE_FILTER_MODE_BILINEAR: NTRasterTileFilterMode; readonly RASTER_TILE_FILTER_MODE_BICUBIC: NTRasterTileFilterMode; }; export declare class NTRasterTileEventListenerImpl extends AKRasterTileEventListener { private _layer; private _owner; private projection?; static initWithOwner(owner: WeakRef<IRasterTileEventListener>, layer: WeakRef<RasterTileLayer>, projection?: Projection): NTRasterTileEventListenerImpl; onRasterTileClickedThreaded(info: NTRasterTileClickInfo): boolean; } export declare abstract class RasterTileLayerCommon<NativeClass extends NTRasterTileLayer, U extends RasterTileLayerOptions> extends RasterTileLayerBase<NativeClass, U> { projection?: Projection; clickListener?: IRasterTileEventListener; nClickListener?: NTRasterTileEventListener; constructor(options: any); setRasterTileEventListener(listener: IRasterTileEventListener, projection?: Projection): void; } export declare class RasterTileLayer extends RasterTileLayerCommon<NTRasterTileLayer, RasterTileLayerOptions> { createNative(options: RasterTileLayerOptions): NTRasterTileLayer; } export declare class HillshadeRasterTileLayer extends RasterTileLayerBase<AKHillshadeRasterTileLayer, HillshadeRasterTileLayerOptions> { heightScale: number; contrast: number; exagerateHeightScaleEnabled: boolean; normalMapLightingShader: string; illuminationDirection: MapVec | [number, number, number]; highlightColor: string | Color; shadowColor: string | Color; accentColor: string | Color; tileFilterMode: IRasterTileFilterMode; createNative(options: any): AKHillshadeRasterTileLayer; getElevation(pos: MapPos): number; getElevations(pos: MapPosVector | MapPos[]): DoubleVector; getElevationAsync(pos: MapPos, callback: (error: any, res: number) => void): void; getElevationsAsync(pos: MapPosVector | MapPos[], callback: (error: any, res: DoubleVector) => void): void; }