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 |
|---|---|---|
| | ||
| | ||
| | ||
| readonly inherited | ||
| |
color
- 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
- 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
- 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
minDuration
- 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
| Method | Signature | Class |
|---|---|---|
| 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.