ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / SetViewingMode Method
Version

SetViewingMode Method
Set the perspective of the map view. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetViewingMode( 
   MapViewingMode viewingMode
)

Parameters

viewingMode
Exceptions
ExceptionDescription
Map can only be set for 2D views and SceneLocal and SceneGlobal can only be set for 3D views.
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
A map view can be used to show maps which display 2D data or scenes which display 3D data. This method can be used to switch between Local and Global for 3D.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also