Class: UIRightPopover

UIRightPopover

UIRightPopover class to manage the creation and closing of panels. This UIRightPopover can display provided content.

new UIRightPopover(mapContainer)

UIMap/UIDisplay/UIRightPopover/index.ts, line 1

Creates a new UIRightPopover instance and initializes the panel.

Name Type Description
mapContainer

The container element that will hold the panel.

Methods

closePopover()

UIMap/UIDisplay/UIRightPopover/index.ts, line 88

Close the popover.

cratePopover()

UIMap/UIDisplay/UIRightPopover/index.ts, line 32

Creates the popover and appends it to the map container. It also adds the header with a close button if the header is not hidden.

isOpened()

UIMap/UIDisplay/UIRightPopover/index.ts, line 97

Checks whether the popover is currently opened.

Returns:
True if the popover is opened, otherwise false.

showPopover(content)

UIMap/UIDisplay/UIRightPopover/index.ts, line 58

Show the popover with the provided HTML content. If the popover is already open, it will close the popover.

Name Type Description
content string

The HTML content to display inside the popover.

Returns:
The popover element.

showPopoverHTMLElement(content)

UIMap/UIDisplay/UIRightPopover/index.ts, line 74

Show the popover with the provided HTML content. If the popover is already open, it will close the popover.

Name Type Description
content HTMLElement

The HTML content to display inside the popover.

Returns:
The popover element.