public enum MapViewingMode : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum MapViewingMode Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum MapViewingMode : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum MapViewingMode Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
Map | A 2D map. |
MapStereo | A 2D map in stereo mode. Applicable if map is configured for stereo mode. |
SceneGlobal | A scene (3D map) in global view mode. |
SceneLocal | A scene (3D map) in local view mode. |
//Map must be a local scene bool canCreateVoxel = (MapView.Active.ViewingMode == MapViewingMode.SceneLocal); if (canCreateVoxel) { //TODO - use the voxel api methods }
public bool IsView3D() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return false; //Return whether the viewing mode is SceneLocal or SceneGlobal return mapView.ViewingMode == ArcGIS.Core.CIM.MapViewingMode.SceneLocal || mapView.ViewingMode == ArcGIS.Core.CIM.MapViewingMode.SceneGlobal; }
System.Object
System.ValueType
System.Enum
ArcGIS.Core.CIM.MapViewingMode
Target Platforms: Windows 11, Windows 10