Options
All
  • Public
  • Public/Protected
  • All
Menu

API to enable and respond to user position updates.

Hierarchy

  • BlueDot

Index

Properties

Methods

Properties

off: (<EVENT_NAME>(eventName: EVENT_NAME, fn: ((payload: E_BLUEDOT_EVENT_PAYLOAD[EVENT_NAME]) => void)) => void) = ...

Type declaration

    • Unsubscribe a function that was previously subscribed with on.

      mapView.BlueDot.on(E_BLUEDOT_EVENT.POSITION_UPDATE, blueDotChangeHandler);

      ...

      // Something changed and I no longer want this event to fire
      mapView.BlueDot.off(E_BLUEDOT_EVENT.POSITION_UPDATE, blueDotChangeHandler);

      Type Parameters

      Parameters

      Returns void

on: (<EVENT_NAME>(eventName: EVENT_NAME, fn: ((payload: E_BLUEDOT_EVENT_PAYLOAD[EVENT_NAME] extends { data: null } ? any[any]["data"] : E_BLUEDOT_EVENT_PAYLOAD[EVENT_NAME]) => void)) => void) = ...

Type declaration

Methods

  • disable(): void
  • Disables Blue Dot that was enabled with enable and stops emitting events.

    // Enable blue dot
    mapView.BlueDot.enable();

    // Disable blue dot
    mapView.BlueDot.disable();

    Returns void