Skip to content
import TotalDurationOptions from "@arcgis/core/analysis/ShadowCast/TotalDurationOptions.js";
Inheritance:
TotalDurationOptionsAccessor
Since
ArcGIS Maps SDK for JavaScript 5.0

Configuration for the "total-duration" mode of the ShadowCastAnalysis.

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 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]

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

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

mode

Property
Type
ShadowCastTotalDurationMode

Determines how cumulative shadow duration is visualized. Either as a continuous surface across the selected time range or aggregated into discrete hourly intervals.

Default value
"continuous"

Methods

MethodSignatureClass
clone
inherited
clone(): this

clone

inherited Method
Signature
clone (): this
Inherited from: ClonableMixin

Creates a deep clone of this object. Any properties that store values by reference will be assigned copies of the referenced values on the cloned instance.

Returns
this

A deep clone of the class instance that invoked this method.