geoview-core
    Preparing search index...

    Class NavBarApi

    Class to manage buttons on the nav-bar

    Index

    Constructors

    • Instantiates a NavbarApi class.

      Parameters

      • mapId: string

        The map id this NavBarApi belongs to

      Returns NavBarApi

    Properties

    buttons: Record<string, Record<string, TypeButtonPanel>> = {}
    groupConfigs: Record<string, TypeButtonGroupConfig> = {}
    mapId: string

    Methods

    • Creates a new nav-bar button that will trigger a callback when clicked

      Parameters

      Returns TypeButtonPanel | null

      The created button

    • Gets configuration for a button group

      Parameters

      • groupName: string

        The group name

      Returns TypeButtonGroupConfig

      The group configuration

    • Gets a button panel from the nav-bar by using its id

      Parameters

      • buttonPanelId: string

        The id of the button panel to get

      Returns TypeButtonPanel | null

      The Button panel

    • Unregisters an event handler for NavBar created events.

      Parameters

      • callback: NavBarCreatedDelegate

        The callback to stop being called whenever the event is emitted.

      Returns void

    • Unregisters an event handler for NavBar removed events.

      Parameters

      • callback: NavBarRemovedDelegate

        The callback to stop being called whenever the event is emitted.

      Returns void

    • Registers an event handler for NavBar created events.

      Parameters

      • callback: NavBarCreatedDelegate

        The callback to be executed whenever the event is emitted.

      Returns void

    • Registers an event handler for NavBar removed events.

      Parameters

      • callback: NavBarRemovedDelegate

        The callback to be executed whenever the event is emitted.

      Returns void

    • Removes a nav-bar button or panel using its id

      Parameters

      • buttonPanelId: string

        The id of the panel or button to remove

      Returns void

    • Sets configuration for a button group

      Parameters

      Returns void