UNPKG

@nativescript-community/ui-mapbox

Version:

Interactive, thoroughly customizable maps powered by vector tiles and OpenGL.

20 lines (19 loc) 702 B
import { LayerCommon, LayerType } from '../common'; export declare class Layer implements LayerCommon { mapboxView: MapView; id: string; constructor(mapboxView: MapView, id: string); visibility(): boolean; show(): void; hide(): void; getNativeInstance(): any; setFilter(filter: any[]): void; getFilter(): any[]; setProperty(name: string, value: any): void; getProperty(name: string): any; type(): LayerType; } export declare class LayerFactory { static createLayer(mapboxView: MapView, style: any, belowLayerId: string): Promise<LayerCommon>; static applyLayerProperties(mapboxView: MapView, layer: any, properties: Record<string, any>): void; }