Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Pane
    • NavigationPane

Index

Constructors

constructor

Properties

Private Readonly fromInputWriter

fromInputWriter: TextBoxWriter

Private fromPin

fromPin: Option<FlooredMarker>

Private Readonly fromToResultClearer

fromToResultClearer: ResultClearer

Private Readonly pane

pane: HTMLElement

Private pathLayers

pathLayers: Set<LSomeLayerWithFloor>

Private snapPinHandler

snapPinHandler: (location: BuildingLocation) => BuildingLocation

Type declaration

Private Readonly toInputWriter

toInputWriter: TextBoxWriter

Private toPin

toPin: Option<FlooredMarker>

Static inject

inject: readonly ["floors", "map", "geocoder", "events"] = ...

Methods

clearNav

  • clearNav(): void
  • Returns void

clearNavSuggestions

  • clearNavSuggestions(): void
  • Remove search suggestions from typing in the navigate from or to fields

    Returns void

Private createFromPin

  • Create and add the from pin, or delete and recreate it if it exists

    Parameters

    Returns void

Private createToPin

  • Create and add the to pin, or delete and recreate it if it exists

    Parameters

    Returns void

displayNav

  • Parameters

    Returns void

Private genDraggablePin

  • Create a draggable pin that does not snap anywhere when released

    Parameters

    • location: BuildingLocation

      Location to place the pin; note that the pin will be snapped before it is placed

    • iconClass: string

      Class used for the icon

    • onMove: (location: BuildingLocation) => void

      Called when the location of the pin changes, including while it is dragged and when it snaps

    Returns FlooredMarker

Private genDraggableSnappingPin

Private genFromPin

  • Parameters

    Returns FlooredMarker

Private genToPin

  • Parameters

    Returns FlooredMarker

getPaneElement

  • getPaneElement(): HTMLElement
  • Returns HTMLElement

getPaneIconClass

  • getPaneIconClass(): string
  • Returns string

getPaneId

  • getPaneId(): string
  • Returns string

getPaneTitle

  • getPaneTitle(): string
  • Returns string

getPanelOptions

  • getPanelOptions(): PanelOptions
  • Returns PanelOptions

getPosition

  • getPosition(): "top" | "bottom"
  • Returns "top" | "bottom"

moveFromPin

  • Parameters

    Returns void

moveToPin

  • Parameters

    Returns void

setNavigateFromInputContents

  • setNavigateFromInputContents(contents: string): void
  • Parameters

    • contents: string

    Returns void

setNavigateToInputContents

  • setNavigateToInputContents(contents: string): void
  • Parameters

    • contents: string

    Returns void

setSnapPinHandler

  • Set the callback for snapping the pin's location when it isn't being dragged. Defaults to the identity function, ie. no snapping.

    Parameters

    Returns void

Private swapNav

  • swapNav(): void
  • Returns void

Generated using TypeDoc