Skip to content
import ThresholdOptions from "@arcgis/core/widgets/ShadowCast/ThresholdOptions.js";
Inheritance:
ThresholdOptionsAccessor
Since
ArcGIS Maps SDK for JavaScript 4.33

Configuration for the threshold visualization of the Shadow Cast widget and component.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

color

autocast Property
Type
Color

Color of the shadow visualization. The areas with cumulative shadow time longer than the threshold value are displayed with this color.

Default value
[255, 0 , 0, 0.7]

contextEnabled

Property
Type
boolean

Whether to enable additional context showing discrete shadows at the same time as displaying the threshold. The contextOptions property is used to configure the visualization of the discrete shadows when context is enabled.

See also
Default value
false

contextOptions

autocast Property
Type
DiscreteOptions

The configuration used when showing additional context by setting contextEnabled to true. The default configuration will show the shadows at 1 hour intervals as context for the threshold visualization.

See also

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

maxValue

Property
Type
number

The maximum time period (in milliseconds) selectable in the UI for the threshold value. The values in the widget slider are displayed in hours.

Default value
8 * 3600 * 1000

minValue

Property
Type
number

The minimum time period (in milliseconds) selectable in the UI for the threshold value. The values in the widget slider are displayed in hours.

Default value
0 * 3600 * 1000

value

Property
Type
number

Time period in milliseconds. Only shadows cast for more time than this value are displayed.

Default value
4 * 3600 * 1000