dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
WebsceneSunLighting Class
The sun lighting object is part of the webscene/Environment and contains information relating to how a SceneView is lit by the sun.
ArcGIS Maps SDK for JavaScript
public class WebsceneSunLighting : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 WebsceneSunLighting
Derived
↳ SunLighting
Constructors
WebsceneSunLighting() Constructor
Parameterless constructor for use as a Razor Component.
public WebsceneSunLighting();
WebsceneSunLighting(Nullable, Nullable, Nullable) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public WebsceneSunLighting(System.Nullable<System.DateTime> date=null, System.Nullable<bool> directShadowsEnabled=null, System.Nullable<double> displayUTCOffset=null);
Parameters
date
System.Nullable<System.DateTime>
The current date and time of the simulated sun.
default null
ArcGIS Maps SDK for JavaScript
directShadowsEnabled
System.Nullable<System.Boolean>
Indicates whether to show shadows cast by the sun.
default false
ArcGIS Maps SDK for JavaScript
displayUTCOffset
System.Nullable<System.Double>
The UTC time zone offset in hours that should be displayed in the UI to represent the date.
default null
ArcGIS Maps SDK for JavaScript
Properties
WebsceneSunLighting.Date Property
The current date and time of the simulated sun.
default null
ArcGIS Maps SDK for JavaScript
public System.Nullable<System.DateTime> Date { get; set; }
Property Value
System.Nullable<System.DateTime>
WebsceneSunLighting.DirectShadowsEnabled Property
Indicates whether to show shadows cast by the sun.
default false
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> DirectShadowsEnabled { get; set; }
Property Value
System.Nullable<System.Boolean>
WebsceneSunLighting.DisplayUTCOffset Property
The UTC time zone offset in hours that should be displayed in the UI to represent the date.
default null
ArcGIS Maps SDK for JavaScript
public System.Nullable<double> DisplayUTCOffset { get; set; }
Property Value
System.Nullable<System.Double>
Methods
WebsceneSunLighting.GetDate() Method
Asynchronously retrieve the current value of the Date property.
public System.Threading.Tasks.Task<System.Nullable<System.DateTime>> GetDate();
Returns
System.Threading.Tasks.Task<System.Nullable<System.DateTime>>
WebsceneSunLighting.GetDirectShadowsEnabled() Method
Asynchronously retrieve the current value of the DirectShadowsEnabled property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetDirectShadowsEnabled();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
WebsceneSunLighting.GetDisplayUTCOffset() Method
Asynchronously retrieve the current value of the DisplayUTCOffset property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetDisplayUTCOffset();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
WebsceneSunLighting.SetDate(Nullable) Method
Asynchronously set the value of the Date property after render.
public System.Threading.Tasks.Task SetDate(System.Nullable<System.DateTime> value);
Parameters
value
System.Nullable<System.DateTime>
The value to set.
Returns
WebsceneSunLighting.SetDirectShadowsEnabled(Nullable) Method
Asynchronously set the value of the DirectShadowsEnabled property after render.
public System.Threading.Tasks.Task SetDirectShadowsEnabled(System.Nullable<bool> value);
Parameters
value
System.Nullable<System.Boolean>
The value to set.
Returns
WebsceneSunLighting.SetDisplayUTCOffset(Nullable) Method
Asynchronously set the value of the DisplayUTCOffset property after render.
public System.Threading.Tasks.Task SetDisplayUTCOffset(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.