Skip to content
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

Color of the shadow visualization. The areas with cumulative shadow time longer than the minDuration are displayed with this color.

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. 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 will show the 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 or exceeds this value. Areas with shorter shadow durations will appear without shadows.

Default value
4 * 3600 * 1000

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.