ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LasDatasetLayer Class / SetEyeDomeLightingEnabled Method
The eye dome lighting enabled state.
Example

In This Topic
    SetEyeDomeLightingEnabled Method (LasDatasetLayer)
    In This Topic
    Enables/disables eye dome lighting. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetEyeDomeLightingEnabled( 
       bool enabled
    )
    Public Sub SetEyeDomeLightingEnabled( _
       ByVal enabled As Boolean _
    ) 

    Parameters

    enabled
    The eye dome lighting enabled state.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    Eye dome lighting can improve depth perception in a 3D layer.
    Example
    Eye Dome Lighting
    // get current EDL settings
    bool isEnabled = lasDatasetLayer.IsEyeDomeLightingEnabled;
    var radius = lasDatasetLayer.EyeDomeLightingRadius;
    var strength = lasDatasetLayer.EyeDomeLightingStrength;
    
    // set EDL values
    lasDatasetLayer.SetEyeDomeLightingEnabled(true);
    lasDatasetLayer.SetEyeDomeLightingStrength(65.0);
    lasDatasetLayer.SetEyeDomeLightingRadius(2.0);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also