ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / GetElevationSurfaceLayers Method
Example

In This Topic
    GetElevationSurfaceLayers Method
    In This Topic
    Gets the list of elevation surface layers for the map.
    Syntax
    public IReadOnlyList<ElevationSurfaceLayer> GetElevationSurfaceLayers()
    Public Function GetElevationSurfaceLayers() As IReadOnlyList(Of ElevationSurfaceLayer)

    Return Value

    IReadOnlyList {ElevationSurfaceLayer}
    Example
    Get the elevation surface layers and elevation source layers from a map
    // retrieve the elevation surface layers in the map including the Ground
    var surfaceLayers = map.GetElevationSurfaceLayers();
    
    // retrieve the single ground elevation surface layer in the map
    var groundSurfaceLayer = map.GetGroundElevationSurfaceLayer();
    
    // determine the number of elevation sources in the ground elevation surface layer
    int numberGroundSources = groundSurfaceLayer.Layers.Count;
    // get the first elevation source layer from the ground elevation surface layer
    var groundSourceLayer = groundSurfaceLayer.Layers.FirstOrDefault();
    
    Find an elevation surface layer
    var surfaceLayers = map.GetElevationSurfaceLayers();
    var surfaceLayer = surfaceLayers.FirstOrDefault(l => l.Name == "Surface2");
    
    surfaceLayer = map.FindElevationSurfaceLayer(layerUri);
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also