UNPKG

@nativescript-community/ui-mapbox

Version:

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

30 lines (29 loc) 1.08 kB
import { StackLayout } from '@nativescript/core'; /** * Hybrid Marker — uses native Mapbox annotation APIs, but NativeScript view for info window. */ export declare class AndroidMarker { position: com.mapbox.geojson.Point; icon: android.graphics.Bitmap; title?: string; snippet?: string; id?: string | number; pointAnnotation: com.mapbox.maps.plugin.annotation.generated.PointAnnotation; viewAnnotation: android.view.View; view: StackLayout; anchor: com.mapbox.maps.ViewAnnotationAnchorConfig; layerId: string; constructor(opts: { id: string | number; position: com.mapbox.geojson.Point; icon: android.graphics.Bitmap; title?: string; snippet?: string; }); /** * Create the native PointAnnotation */ prepareAnnotationMarker(pointAnnotationManager: com.mapbox.maps.plugin.annotation.generated.PointAnnotationManager, layerId: string): void; update(pointAnnotationManager: com.mapbox.maps.plugin.annotation.generated.PointAnnotationManager): void; destroy(): void; }