Skip to content

worldwind-ui API / ngx-worldwind / WwLegendComponent

Class: WwLegendComponent ​

Defined in: angular/src/lib/ui/legend.component.ts:38

Legend images of the visible layers, top-most first: WMS and WMTS legends from capabilities, or any image a layer sets through its legend input. Renders nothing when no layer has one.

Constructors ​

Constructor ​

new WwLegendComponent(): WwLegendComponent

Returns ​

WwLegendComponent

Properties ​

entries ​

readonly entries: Signal<LegendEntry[]>

Defined in: angular/src/lib/ui/legend.component.ts:50


heading ​

readonly heading: InputSignal<string | null>

Defined in: angular/src/lib/ui/legend.component.ts:42


includeDisabled ​

readonly includeDisabled: InputSignal<boolean>

Defined in: angular/src/lib/ui/legend.component.ts:46

Include layers that are switched off.


panelClass ​

readonly panelClass: InputSignal<string>

Defined in: angular/src/lib/ui/legend.component.ts:48

Extra classes for the panel.


position ​

readonly position: InputSignal<WwPanelPosition>

Defined in: angular/src/lib/ui/legend.component.ts:41


showNames ​

readonly showNames: InputSignal<boolean>

Defined in: angular/src/lib/ui/legend.component.ts:44

Show the layer name above each legend.

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.