Skip to content

worldwind-ui API / worldwind-kit / setLayerLegend

Function: setLayerLegend() ​

setLayerLegend<L>(layer, legend): L

Defined in: kit/src/layers.ts:233

Records the legend image of a layer (done automatically for layers built from capabilities).

Type Parameters ​

L ​

L extends WWLayer

Parameters ​

layer ​

L

legend ​

string | LayerLegend | null

Returns ​

L

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