import DurationOptions from "@arcgis/core/widgets/ShadowCast/DurationOptions.js";const DurationOptions = await $arcgis.import("@arcgis/core/widgets/ShadowCast/DurationOptions.js");- Inheritance:
- DurationOptions→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.33
Configuration for the duration 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
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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.
| Property | Type | Class |
|---|---|---|
| | ||
declaredClass readonly inherited | ||
| |
color
autocast
Property
- Type
- Color
Color of the shadow visualization. The opacity is mapped to the time spent in shadow. Areas that don't receive any shadow are displayed with zero opacity and areas that receive shadows for the entire time range are displayed with the opacity specified in this property.
- Default value
- [0, 0, 255, 0.7]
mode
Property
- Type
- DurationMode
Mode in which the cumulative shadow duration should be displayed: as a continuous surface or as an hourly aggregation of values.
- Default value
- "continuous"