dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
SunLighting Class
The SunLighting class allows you to change the lighting in the scene to sunlight.
ArcGIS Maps SDK for JavaScript
public class SunLighting : dymaptic.GeoBlazor.Core.Components.WebsceneSunLighting,
dymaptic.GeoBlazor.Core.Interfaces.IEnvironmentLighting,
dymaptic.GeoBlazor.Core.Interfaces.IMapComponent,
dymaptic.GeoBlazor.Core.Interfaces.ISceneViewEnvironmentLighting
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 WebsceneSunLighting 🡒 SunLighting
Implements IEnvironmentLighting, IMapComponent, ISceneViewEnvironmentLighting
Constructors
SunLighting() Constructor
Parameterless constructor for use as a Razor Component.
public SunLighting();
SunLighting(Nullable, 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 SunLighting(System.Nullable<bool> cameraTrackingEnabled=null, System.Nullable<System.DateTime> date=null, System.Nullable<bool> directShadowsEnabled=null, System.Nullable<double> displayUTCOffset=null);
Parameters
cameraTrackingEnabled
System.Nullable<System.Boolean>
Indicates whether the date and time of the simulated sun is automatically updated to maintain the current time of day while the camera changes.
default true
ArcGIS Maps SDK for JavaScript
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
SunLighting.CameraTrackingEnabled Property
Indicates whether the date and time of the simulated sun is automatically updated to maintain the current time of day while the camera changes.
default true
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> CameraTrackingEnabled { get; set; }
Property Value
System.Nullable<System.Boolean>
Methods
SunLighting.CloneWithWebsceneLighting() Method
Create a clone of this while partially applying the provided webscene lighting settings.
ArcGIS Maps SDK for JavaScript
public System.Threading.Tasks.Task CloneWithWebsceneLighting();
Returns
SunLighting.GetCameraTrackingEnabled() Method
Asynchronously retrieve the current value of the CameraTrackingEnabled property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetCameraTrackingEnabled();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
SunLighting.SetCameraTrackingEnabled(Nullable) Method
Asynchronously set the value of the CameraTrackingEnabled property after render.
public System.Threading.Tasks.Task SetCameraTrackingEnabled(System.Nullable<bool> value);
Parameters
value
System.Nullable<System.Boolean>
The value to set.