import MinDurationOptions from "@arcgis/core/analysis/ShadowCast/MinDurationOptions.js";const MinDurationOptions = await $arcgis.import("@arcgis/core/analysis/ShadowCast/MinDurationOptions.js");- Inheritance:
- MinDurationOptions→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Configuration for the "min-duration" mode of the ShadowCastAnalysis.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
| | ||
| | ||
| | ||
declaredClass readonly inherited | ||
| |
color
- 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
- 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
- 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
minDuration
- 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
| Method | Signature | Class |
|---|---|---|
clone inherited | clone(): this |
clone
- Signature
-
clone (): this
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.