import ThresholdOptions from "@arcgis/core/widgets/ShadowCast/ThresholdOptions.js";const ThresholdOptions = await $arcgis.import("@arcgis/core/widgets/ShadowCast/ThresholdOptions.js");- Inheritance:
- ThresholdOptions→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.33
Configuration for the threshold visualization of the Shadow Cast widget and component.
- See also
ShadowCast widget - Deprecated since 5.0. Use the Shadow Cast component instead.
ShadowCastViewModel - Deprecated since 5.0. Use the ShadowCastAnalysis or Shadow Cast component instead.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
| | ||
| | ||
| | ||
declaredClass readonly inherited | ||
| | ||
| | ||
| |
contextEnabled
- 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
- 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
value
- Type
- number
Time period in milliseconds. Only shadows cast for more time than this value are displayed.
- Default value
- 4 * 3600 * 1000