Class AutkMapUi

Source
Expand description

Map UI class for managing the user interface elements of the map.

Constructors§

Source§

new AutkMapUi(map: AutkMap): AutkMapUi

Constructor for AutkMapUi

Properties§

Source§

protected _activeLayer: Layer | null

Currently selected layer in the UI.

Source§

protected _legend: HTMLDivElement | null = [object Object]

Reference to the legend HTML element.

Source§

protected _map: AutkMap

Reference to the AutkMap instance.

Source§

protected _menuIcon: HTMLDivElement | null = [object Object]

Reference to the menu icon HTML element.

Source§

protected _subMenu: HTMLDivElement | null = [object Object]

Reference to the submenu HTML element.

Source§

protected _uiMargin: number = [object Object]

UI margin for positioning elements

Accessors§

Source§

get activeLayer(): Layer | null

Get the current layer in the UI.

Source§

set activeLayer(layer: Layer | null): void

Set the current layer in the UI.

Source§

get map(): AutkMap

Get the map instance.

Source§

set map(map: AutkMap): void

Set the map instance.

Methods§

Source§

buildActiveLayerDropdown(): void

Build the active layer dropdown.

Source§

buildLegend(width?: number, height?: number): void

Build the submenu for layer options.

Source§

buildLegendCheckbox(): void

Build the legend checkbox for showing thematic data.

Source§

buildSubMenu(): void

Build the submenu for layer options.

Source§

buildUi(): void

Build the UI elements for the map.

Source§

buildVisibleLayersDropdown(): void

Build the active layers dropdown.

Source§

changeActiveLayer(layer: Layer | null): void

Change the current layer in the UI.

Source§

handleResize(): void

Source§

updateLegend(width?: number, height?: number): void

Updates the legend display.