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

Configuration for the "discrete" 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.
PropertyTypeClass
declaredClass
readonly inherited

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
Since
ArcGIS Maps SDK for JavaScript 4.7

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

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.