ArcObjects Library Reference (GlobeCore)  

IGlobe.AddLayerType Method

Add layer to globe as specified type.

[Visual Basic .NET]
Public Sub AddLayerType ( _
    ByVal pLayer As ILayer, _
    ByVal layerType As esriGlobeLayerType, _
    [ByVal autoArrange As Boolean] _
)
[C#]
public void AddLayerType (
    ILayer pLayer,
    esriGlobeLayerType layerType,
    bool autoArrange
);
[C#]

Optional Values

autoArrange   Supply false as a default value.
[C++]
HRESULT AddLayerType(
  ILayer* pLayer,
  esriGlobeLayerType layerType,
  VARIANT_BOOL autoArrange
);
[C++]

Parameters

pLayer [in]

  pLayer is a parameter of type ILayer

layerType [in]

  layerType is a parameter of type esriGlobeLayerType

autoArrange [in, optional, defaultvalue(VARIANT_FALSE)]   autoArrange is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Adds a layer to the globe. The type of layer is specified by esriGlobeLayerType. This determines how the layer will be used in the globe document: as globe surface elevation, as a draped layer, or as a floating layer. 

The autoArrange parameter controls the ordering of the layers.  If autoArrange is set to TRUE, the layer is added in the proper position as by its weight specified via ILayerPosition::LayerWeight.  By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers.

See Also

IGlobe Interface

.NET Snippets

Add Globe Layer by Type | Add Vector Data to Globe |

.NET Samples

Displaying MOLE symbology with the GlobeControl (Code Files: MainForm) | Visualizing the camera path while animating (Code Files: VisualizeCameraPath) |

.NET Related Topics

Adding data to globe | GlobeCore |