import MinDurationOptions from "@arcgis/core/analysis/ShadowCast/MinDurationOptions.js";
Inheritance
MinDurationOptionsAccessor
Since
ArcGIS Maps SDK for JavaScript 5.0

Configuration for the "min-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

Defines the color used to display areas where the cumulative shadow duration meets minDuration. When ShadowCastAnalysis.visualizeSunlight is true, this color displays areas where cumulative sunlight duration meets minDuration. Areas with shorter duration are displayed with zero opacity.

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 minimum duration. This context is only rendered when visualizing shadow duration. 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 shows shadows at one hour intervals as context for the visualization.

See also

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.

minDuration

Property
Type
number

Minimum shadow duration (in milliseconds). Shadows are only displayed in areas where the cumulative shadow duration meets this value. When ShadowCastAnalysis.visualizeSunlight is true, this value is interpreted as the minimum sunlight duration and areas with shorter sunlight duration will appear without sunlight.

Default value
4 * 3600 * 1000

Methods

MethodSignatureClass
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.