worldwind-ui API / react-worldwind / UseLayerOptions
Interface: UseLayerOptions ​
Defined in: react/src/hooks.ts:151
Extends ​
Extended by ​
Properties ​
attribution? ​
optionalattribution?:string|LayerAttribution|null
Defined in: kit/src/layers.ts:86
Credit for the layer's data; null suppresses the default of a built-in layer.
Inherited from ​
displayName? ​
optionaldisplayName?:string
Defined in: kit/src/layers.ts:78
Inherited from ​
enabled? ​
optionalenabled?:boolean
Defined in: kit/src/layers.ts:79
Inherited from ​
index? ​
optionalindex?:number
Defined in: react/src/hooks.ts:153
Position in the layer stack (0 = bottom). Applied on creation only.
legend? ​
optionallegend?:string|LayerLegend|null
Defined in: kit/src/layers.ts:88
Legend image URL or descriptor.
Inherited from ​
maxActiveAltitude? ​
optionalmaxActiveAltitude?:number
Defined in: kit/src/layers.ts:84
Inherited from ​
LayerOptions.maxActiveAltitude
minActiveAltitude? ​
optionalminActiveAltitude?:number
Defined in: kit/src/layers.ts:83
Inherited from ​
LayerOptions.minActiveAltitude
onError? ​
optionalonError?: (error) =>void
Defined in: react/src/hooks.ts:155
Called when an asynchronous create rejects. Defaults to console.error.
Parameters ​
error ​
unknown
Returns ​
void
opacity? ​
optionalopacity?:number
Defined in: kit/src/layers.ts:81
0..1
Inherited from ​
pickEnabled? ​
optionalpickEnabled?:boolean
Defined in: kit/src/layers.ts:82
Inherited from ​
timeDimension? ​
optionaltimeDimension?:TimeDimension|null
Defined in: kit/src/layers.ts:90
The instants the layer can show, for time sliders. Read from capabilities when available.