new UIRightFloatingPanel(mapContainer)
Creates a new UIRightFloatingPanel instance and initializes the panel.
| Name | Type | Description |
|---|---|---|
mapContainer |
The container element that will hold the panel. |
Methods
-
closePanel()
UIMap/UIDisplay/UIRightFloatingPanel/index.ts, line 88 -
Close the floating panel.
-
createPanel()
UIMap/UIDisplay/UIRightFloatingPanel/index.ts, line 32 -
Creates the floating panel 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/UIRightFloatingPanel/index.ts, line 97 -
Checks whether the floating panel is currently opened.
Returns:
True if the floating panel is opened, otherwise false. -
showPanel(content)
UIMap/UIDisplay/UIRightFloatingPanel/index.ts, line 58 -
Show the floating panel with the provided HTML content. If the floating panel is already open, it will close the floating panel.
Name Type Description contentstring The HTML content to display inside the floating panel.
Returns:
The floating panel element. -
showPanelHTMLElement(content)
UIMap/UIDisplay/UIRightFloatingPanel/index.ts, line 74 -
Show the floating panel with the provided HTML content. If the floating panel is already open, it will close the floating panel.
Name Type Description contentHTMLElement The HTML content to display inside the floating panel.
Returns:
The floating panel element.
