<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Shadow Analysis default color, slider duration 0 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1588400#M86554</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedZhou_0-1740346974894.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126087iD3BE32CDBA437172/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedZhou_0-1740346974894.png" alt="TedZhou_0-1740346974894.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1. The words should be updated when the slider changes, it should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Areas in shadow for more than 4 hours&lt;/P&gt;&lt;P&gt;The label is not updated when the slider moves?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The duration when the duration is zero seems to be corret.&lt;/P&gt;&lt;P&gt;3. The color when the duration is zero still in red, not sure the reason.&lt;/P&gt;&lt;P&gt;ArcGIS team did great work as usual indeed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Feb 2025 21:47:29 GMT</pubDate>
    <dc:creator>TedZhou</dc:creator>
    <dc:date>2025-02-23T21:47:29Z</dc:date>
    <item>
      <title>Shadow Analysis default color, slider duration 0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1588397#M86553</link>
      <description>&lt;P&gt;Shadow Analysis seems to be a very complex to me. ArcGIS team implemented it successfully should be not easy for them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a good feature our surveyors wanted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configured the default color as below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sceneView.environment.lighting.directShadowsEnabled = &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; widget = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; ShadowCast({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; view,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; container: panel&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; headingLevel: 2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.thresholdOptions.color.setColor(pink);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.durationOptions.color.setColor(purple);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.discreteOptions.color.setColor(blue);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.thresholdOptions.maxValue = 14;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.visualizationType = &lt;/SPAN&gt;&lt;SPAN&gt;'duration'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Not sure the reason behind&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sceneView.environment.lighting.directShadowsEnabled = &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to set to true. I did not notice any differences. I wish I could learn from you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. I set the default color as below:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.thresholdOptions.color.setColor(pink);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.durationOptions.color.setColor(purple);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.discreteOptions.color.setColor(blue);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, when the ShadowAnalysis appear the first time, the color for threshold still is red, probably the default color ArcGIS team set, not the color I set through view model.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I believe I may need to call the ShadowAnalysis to re-render to get it right. However, I reckon if I set the color through view model, the widget or the view should respond.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This issue I will try to find a way to get around myself.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3. Slider duration zero seems to be no effect at all?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Normal duration is correct probably. ArcGIS team did a good job.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedZhou_0-1740342816677.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126083i7A776E951C66ADFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedZhou_0-1740342816677.png" alt="TedZhou_0-1740342816677.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the maximum duration I assume to be correct:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedZhou_1-1740342943170.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126084i025607141F8F57FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedZhou_1-1740342943170.png" alt="TedZhou_1-1740342943170.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Move the slider to zero duration, then it still has some shadow? I need to confirm with our Surveyor otherwise I will get into trouble now. I cannot understand the fact zero duration still has shadow ?&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedZhou_2-1740343043750.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126085i959F3BB9A26B9C7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedZhou_2-1740343043750.png" alt="TedZhou_2-1740343043750.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedZhou_3-1740343095141.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126086i8EB14A5DE3331BB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedZhou_3-1740343095141.png" alt="TedZhou_3-1740343095141.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. How to properly set the date?&lt;/P&gt;&lt;P&gt;Using the default date?&lt;/P&gt;&lt;P&gt;Or just do as below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;widget.viewModel.date = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; Date();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What are the differences? Shadow analysis relies on the timing and sun light.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am under pressure with the slider with zero duration, which I really cannot understand why zero duration still have shadow.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope I could learn from you.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your tips and advice.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Ted&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 20:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1588397#M86553</guid>
      <dc:creator>TedZhou</dc:creator>
      <dc:date>2025-02-23T20:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shadow Analysis default color, slider duration 0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1588400#M86554</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedZhou_0-1740346974894.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126087iD3BE32CDBA437172/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedZhou_0-1740346974894.png" alt="TedZhou_0-1740346974894.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1. The words should be updated when the slider changes, it should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Areas in shadow for more than 4 hours&lt;/P&gt;&lt;P&gt;The label is not updated when the slider moves?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The duration when the duration is zero seems to be corret.&lt;/P&gt;&lt;P&gt;3. The color when the duration is zero still in red, not sure the reason.&lt;/P&gt;&lt;P&gt;ArcGIS team did great work as usual indeed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 21:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1588400#M86554</guid>
      <dc:creator>TedZhou</dc:creator>
      <dc:date>2025-02-23T21:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Shadow Analysis default color, slider duration 0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1588739#M86569</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/shadow-cast/live/" target="_blank"&gt;Shadow Cast component | Sample | ArcGIS Maps SDK for JavaScript 4.32&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If the trivial bugs with color for sliders got fixed, then it should be fantastic feature for our customers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably it is a bug, probably I am wrong. Please rectify my misfiring.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 21:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1588739#M86569</guid>
      <dc:creator>TedZhou</dc:creator>
      <dc:date>2025-02-24T21:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shadow Analysis default color, slider duration 0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1593961#M86660</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/853877"&gt;@TedZhou&lt;/a&gt;&amp;nbsp;thank you for your report!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are replies to your first 4 points:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;sceneView.environment.lighting.directShadowsEnabled&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;is used to toggle general shadows and has no effect on the Shadow Cast analysis. To avoid the confusion, the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-shadow-cast/" target="_blank" rel="noopener"&gt;sample&lt;/A&gt;&amp;nbsp;disables those shadows.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Colors can be configured as following:&amp;nbsp;&lt;A href="https://codepen.io/gsoosalu/pen/ZYEJNrK" target="_blank" rel="noopener"&gt;https://codepen.io/gsoosalu/pen/ZYEJNrK&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Slider 0 shows shadows at that exact time. Therefore, the rendered shadow is correct, but the text in the tooltip "Total time in shadow: 0 seconds" is misleading. We'll look into making it clearer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; also, I now understand that what confuses you is also that that duration of e.g. 15 mins shows no analysis but duration 0 shows something. We'll look into fixing that as well. Thanks for reporting this!&lt;/P&gt;&lt;P&gt;4. The date shown in the ShadowCast widget needs to be set with&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#date" target="_blank" rel="noopener"&gt;widget.viewModel.date&lt;/A&gt;&amp;nbsp;and &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#utcOffset" target="_blank" rel="noopener"&gt;widget.viewModel.utcOffset&lt;/A&gt;&amp;nbsp;&amp;nbsp;properties.&amp;nbsp;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;sceneView.environment.lighting.date&lt;/SPAN&gt;&lt;/FONT&gt; has no effect on the Shadow Cast widget.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And regarding you further comments:&lt;/P&gt;&lt;P&gt;1. It is by design that the title of this slider does not include the value - the value comes from the slider itself. But&amp;nbsp;we'll bring the feedback to our team and will review your comment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Not clear what you mean here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Note that the time slider is set to midnight and as the Shadow Cast analysis doesn't take the terrain into account (documented &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html" target="_blank" rel="noopener"&gt;here&lt;/A&gt; under Known Limitations), the results show up unexpected.&lt;BR /&gt;In general, I advise you not to use the Shadow Cast widget if&amp;nbsp;&lt;BR /&gt;a. the slider is set to time that is before sunrise or after sunset&lt;BR /&gt;b. for viewing shadows with duration 0. For shadows at a certain time point you can use the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html" target="_blank" rel="noopener"&gt;Daylight widget&lt;/A&gt; instead.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again and let us know if this helps you further.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:42:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1593961#M86660</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2025-03-11T09:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shadow Analysis default color, slider duration 0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1594132#M86663</link>
      <description>&lt;P&gt;Additionally, could you explain what do you expect to see when the shadow duration is 0? Do I get it correctly that it would help you if no shadow was shown in that state?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1594132#M86663</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2025-03-11T09:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shadow Analysis default color, slider duration 0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1594512#M86668</link>
      <description>&lt;P&gt;Dear Grete:&lt;/P&gt;&lt;P&gt;Many thanks for your kind response and assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shadow Analysis is a fantastic feature for our customers and very complicated and actually a successful implementation for such complex and dynamic environments. If there are bugs, only a few trivial UI defects probably.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedZhou_0-1741727584308.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/127701iBAF76A05BBC5503B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedZhou_0-1741727584308.png" alt="TedZhou_0-1741727584308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sceneView.environment.lighting.directShadowsEnabled = &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; widget = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; ShadowCast({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; view,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; container: parentContainer,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; headingLevel: 6&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.thresholdOptions.color.setColor(green);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; widget.viewModel.visualizationType = &lt;/SPAN&gt;&lt;SPAN&gt;'threshold'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Based on view model, the initial color for Shadow should be "&lt;STRONG&gt;green&lt;/STRONG&gt;" rather than "&lt;STRONG&gt;red&lt;/STRONG&gt;". ArcGIS seems to have fixed the &lt;STRONG&gt;initial&lt;/STRONG&gt; color as "&lt;STRONG&gt;red&lt;/STRONG&gt;".&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;With the date settings, we may need to change the default dropdown item as below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TedZhou_1-1741728547454.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/127702iA26146279AEABD9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TedZhou_1-1741728547454.png" alt="TedZhou_1-1741728547454.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;If the view model could provide such configurations then resolve my issues. I tried to hook on, but I failed this moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your kind assistance and efforts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ted&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 21:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1594512#M86668</guid>
      <dc:creator>TedZhou</dc:creator>
      <dc:date>2025-03-11T21:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Shadow Analysis default color, slider duration 0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1594515#M86669</link>
      <description>&lt;P&gt;Sorry, headingLevel is 2 rather than 6. I did not check.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 21:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1594515#M86669</guid>
      <dc:creator>TedZhou</dc:creator>
      <dc:date>2025-03-11T21:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Shadow Analysis default color, slider duration 0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1596216#M86714</link>
      <description>&lt;P&gt;&lt;EM&gt;[Updated]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hi again Ted,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your kind words and it is nice to hear that you and your customers find this tool useful!&lt;/P&gt;&lt;P&gt;Firstly, about the initial color, try setting the color as following (I also updated my&amp;nbsp;&lt;A href="https://codepen.io/gsoosalu/pen/ZYEJNrK" target="_blank" rel="noopener"&gt;app&lt;/A&gt;&amp;nbsp;) :&amp;nbsp;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;widget.viewModel.thresholdOptions.color = new Color("green");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Using the &lt;FONT face="andale mono,times"&gt;Color&lt;/FONT&gt; class's &lt;FONT face="andale mono,times"&gt;setColor&lt;/FONT&gt; method directly on the&amp;nbsp;&lt;FONT face="andale mono,times"&gt;thresholdOptions.color&lt;/FONT&gt; doesn't work. Looks like a bug but I need to investigate further. Thanks for for reporting this!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the time zone - to my knowledge it is not possible to configure which of the options is shown when the dropdown opens. Could it be a workaround for you not to show the time zone at all? You can do that with (also added to my&amp;nbsp;&lt;A href="https://codepen.io/gsoosalu/pen/ZYEJNrK" target="_blank" rel="noopener"&gt;app&lt;/A&gt;&amp;nbsp;) :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;widget.visibleElements = { timezone: false };&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you further and in case you have more questions, let me know!&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grete&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 17:19:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1596216#M86714</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2025-03-17T17:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shadow Analysis default color, slider duration 0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1596516#M86717</link>
      <description>&lt;P&gt;I double checked with the team and got the confirmation that the color needs to be set using&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="andale mono,times"&gt;new Color()&lt;/FONT&gt;.&amp;nbsp;Using &lt;FONT face="andale mono,times"&gt;setColor&lt;/FONT&gt; directly on threshold options' color is not reactive so it is expected that the shadows in the view don't update.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRIKE&gt;Your report that the widget's color picker changes to green is a bug and we'll have it fixed. Thanks again for pointing this out!&lt;/STRIKE&gt;&amp;nbsp;&lt;BR /&gt;Update: A&lt;/SPAN&gt;fter investigating this further, this seems to be a technical limitation. But, as pointed out above, this doesn't occur when the color is correctly set using&amp;nbsp;&lt;FONT face="andale mono,times"&gt;new Color()&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 09:04:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/shadow-analysis-default-color-slider-duration-0/m-p/1596516#M86717</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2025-03-31T09:04:15Z</dc:date>
    </item>
  </channel>
</rss>

