Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BearingComponent

class

BearingComponent

classdesc

Component for indicating bearing and field of view.

example
var viewer = new Mapillary.Viewer(
    "<element-id>",
    "<client-id>",
    "<my key>");

var bearingComponent = viewer.getComponent("bearing");
bearingComponent.configure({ size: Mapillary.ComponentSize.Small });

Hierarchy

Index

Constructors

constructor

  • new BearingComponent(name: string, container: Container, navigator: Navigator): BearingComponent

Properties

Static componentName

componentName: string = "bearing"

Accessors

activated

  • get activated(): boolean

defaultConfiguration

name

  • get name(): string
  • Get name.

    description

    The name of the component. Used when interacting with the component through the Viewer's API.

    Returns string

Methods

activate

configure

deactivate

  • deactivate(): void

fire

  • fire(eventType: string, data: any): void
  • Parameters

    • eventType: string
    • data: any

    Returns void

off

  • off(eventType: string, fn: any): void
  • Unsubscribe from an event by its name.

    Parameters

    • eventType: string

      The name of the event to subscribe to.

    • fn: any

      The handler to remove.

    Returns void

on

  • on(eventType: string, fn: any): void
  • Subscribe to an event by its name.

    Parameters

    • eventType: string

      The name of the event to subscribe to.

    • fn: any

      The handler called when the event occurs.

    Returns void

Generated using TypeDoc