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

Configuration for the discrete 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 opacity of the visualization is mapped to the number of overlapping shadows. No shadow corresponds to opacity 0 and maximum number of shadows corresponds to the opacity set in this color value.

Default value
[50, 50, 50, 0.7]

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

interval

Property
Type
number

Individual shadows are displayed at this time interval, starting with the start time of day. The interval is expressed in milliseconds. If set to 0, we'll use the smallest possible interval, up to a maximum of 255 samples.

Default value
1 * 3600 * 1000

intervalOptions

autocast Property
Type
Collection<number>

Values (in minutes) selectable in the UI for the interval used to accumulate shadows.