Parameters
- map
- The map to convert
- convertTo
- The type to convert the map to
- openView
- true to open a map pane for the newly converted map
Return Value
The converted Map
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
| System.InvalidOperationException | Cannot convert {map} to {conversion type} |
| System.InvalidOperationException | Failed to convert the map viewing mode |
{
//Note: Run within the context of QueuedTask.Run
bool canConvertMap = MapFactory.Instance.CanConvertMap(map, MapConversionType.SceneLocal);
if (canConvertMap)
MapFactory.Instance.ConvertMap(map, MapConversionType.SceneLocal, true);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)