interface MarkerListApi {
    onMarkerAction$: Observable<MarkerListActionEvent>;
    onMarkerClick$: Observable<MarkerListClickEvent>;
    onMarkerCreate$: Observable<MarkerCreateEvent>;
    onMarkerDelete$: Observable<MarkerDeleteEvent>;
    onMarkerInit$: Observable<MarkerInitEvent>;
    onMarkerUpdate$: Observable<MarkerUpdateEvent>;
    onVttLoaded$: Observable<undefined | MarkerVttFile>;
    get name(): string;
    addMarker(marker: Partial<MarkerApi>): MarkerApi;
    destroy(): void;
    getMarkers(): MarkerApi[];
    getSelectedMarker(): undefined | MarkerApi;
    removeMarker(id: string): void;
    toggleMarker(id: string): void;
    updateMarker(id: string, data: Partial<MarkerApi>): void;
}

Hierarchy

  • MarkerAwareApi
    • MarkerListApi

Properties

onMarkerAction$: Observable<MarkerListActionEvent>

Fires after a custom action element is clicked

onMarkerClick$: Observable<MarkerListClickEvent>

Fires after a marker list item row is clicked

onMarkerCreate$: Observable<MarkerCreateEvent>

Fires on marker create

onMarkerDelete$: Observable<MarkerDeleteEvent>

Fires on marker delete

onMarkerInit$: Observable<MarkerInitEvent>

Fires on loading the initial list of markers

onMarkerUpdate$: Observable<MarkerUpdateEvent>

Fires on marker update

onVttLoaded$: Observable<undefined | MarkerVttFile>

Fires after VTT file defined in the config is loaded

Accessors

Methods

  • Adds a new marker

    Parameters

    • marker: Partial<MarkerApi>

      Marker Data

    Returns MarkerApi

  • Updates Marker by ID

    Parameters

    • id: string

      Marker ID

    • data: Partial<MarkerApi>

    Returns void