Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Toolbar

Toolbar represents the main toolbar of the marker.js 2 interface.

Hierarchy

  • Toolbar

Index

Constructors

constructor

  • Creates the main marker.js toolbar.

    Parameters

    • markerjsContainer: HTMLDivElement

      container for the toolbar in the marker.js UI.

    • displayMode: DisplayMode

      marker.js display mode (inline or popup).

    • markerItems: typeof MarkerBase[]

      available marker types.

    • uiStyleSettings: IStyleSettings

      settings for styling the tooblar ui.

    • styles: StyleManager

    Returns Toolbar

Methods

addButtonClickListener

adjustLayout

  • adjustLayout(): void
  • Adjusts toolbar layout.

    Returns void

removeButtonClickListener

setActiveMarkerButton

  • setActiveMarkerButton(typeName: string): void
  • Selects toolbar button for a specified marker type.

    since

    2.17.0

    Parameters

    • typeName: string

      Marker type name

    Returns void

setCurrentMarker

  • Sets current marker and enables/disables action buttons accordingly.

    Parameters

    Returns void

setSelectMode

  • setSelectMode(): void
  • Switch toolbar to the select mode.

    Returns void

show

  • show(visiblity: string): void
  • Creates and displays the toolbar UI.

    Parameters

    • visiblity: string

    Returns void

Generated using TypeDoc