public ElevationTypeDefinition GetElevationTypeDefinition()
Public Function GetElevationTypeDefinition() As ElevationTypeDefinition
Return Value
The ElevationTypeDefinition for the layer.
public ElevationTypeDefinition GetElevationTypeDefinition()
Public Function GetElevationTypeDefinition() As ElevationTypeDefinition
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
//Note: Use QueuedTask.Run ElevationTypeDefinition elevationTypeDefinition = featureLayer.GetElevationTypeDefinition(); elevationTypeDefinition.ElevationType = LayerElevationType.OnGround; //elevationTypeDefinition.ElevationType = LayerElevationType.RelativeToGround; //elevationTypeDefinition.ElevationType = LayerElevationType.RelativeToScene; //elevationTypeDefinition.ElevationType = LayerElevationType.AtAbsoluteHeight; //..so on. //Optional: Specify the cartographic offset elevationTypeDefinition.CartographicOffset = 1000; //Optional: Specify the VerticalExaggeration elevationTypeDefinition.VerticalExaggeration = 2; if (featureLayer.CanSetElevationTypeDefinition(elevationTypeDefinition)) featureLayer.SetElevationTypeDefinition(elevationTypeDefinition);
Target Platforms: Windows 11, Windows 10