Skip to content

Commit

Permalink
Update manifest.json and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed May 20, 2021
1 parent dc93a41 commit 3b446b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
18 changes: 9 additions & 9 deletions src/main/js/bundles/dn_daylight/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# dn_daylight

This bundle enables the user to display the effect of light of certain time of day. Additionally, the shadow of 3D-Objects can be simulated.
This bundle enables the user to display the effect of light of certain time of day. Additionally, the shadow of 3D-Objects can be simulated.

## Usage

Simply add the bundle "dn_daylight" to your app.
Simply add the bundle "dn_daylight" to your app.

To make the functions of this bundle available to the user, the following tool can be added to a toolset:

Expand All @@ -17,8 +17,8 @@ To make the functions of this bundle available to the user, the following tool c
``` json
"dn_daylight": {
"Config": {
"timeSliderSteps": null,
"playSpeedMultiplier": 2,
"timeSliderSteps": 5,
"playSpeedMultiplier": 1,
"dateOrSeason": "date",
"enableShadows": true,
"visibleElements": {
Expand All @@ -35,8 +35,8 @@ For more information concerning the properties refer to the documentation of the

| Property | Type | Possible Values | Default | Description |
|--------------------------------|---------------------|--------------------------------|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| dateOrSeason | String | ` ` ` date ` ` ` | ` ` ` season ` ` ` | ` ` ` date ` ` ` | Controls whether the widget displays a date or a season picker. |
| enableShadows | Boolean | | Controls whether the shadows are enabled on startup. |
| playSpeedMultiplier | Number | | 2 | Controls the speed of the daytime and date animation. |
| timeSliderSteps | Number or Number[] | | 5 | Sets steps, or intervals, on the time slider to restrict the times of the day that can be selected when dragging the thumb. |
| visibleElements | Objects | | | This property provides the ability to display or hide the individual elements of the widget. More information: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#visibleElements |
| dateOrSeason | String | ```date``` | ```season``` | ```date``` | Controls whether the widget displays a date or a season picker. |
| enableShadows | Boolean | ```true``` | ```false``` | ```true``` | Controls whether the shadows are enabled on startup. |
| playSpeedMultiplier | Number | | 1 | Controls the speed of the daytime and date animation. |
| timeSliderSteps | Number or Number[] | | 5 | Sets steps, or intervals, on the time slider to restrict the times of the day that can be selected when dragging the thumb. |
| visibleElements | Object | | | This property provides the ability to display or hide the individual elements of the widget. More information: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#visibleElements |
7 changes: 3 additions & 4 deletions src/main/js/bundles/dn_daylight/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,13 @@
"dn_daylight.DaylightWidgetController"
],
"properties": {
"widgetRole": "daylightWidget",
"timeSliderSteps": null,
"playSpeedMultiplier": 2,
"timeSliderSteps": 5,
"playSpeedMultiplier": 1,
"dateOrSeason": "date",
"enableShadows": true,
"visibleElements": {
"playButtons": true,
"shadowsToggle": true,
"shadowsToggle": false,
"datePicker": true,
"timezone": false
}
Expand Down

0 comments on commit 3b446b3

Please sign in to comment.