ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IMapFactory Interface / CreateMap Method / CreateMap(String,MapType,MapViewingMode,Basemap) Method
The name of the map
ArcGIS.Core.CIM.MapType (Optional) The type of the map. (default value = MapType.Map)
ArcGIS.Core.CIM.MapViewingMode (Optional) Map's default viewing mode. (default value = MapViewingMode.Map)
Basemap (Optional) Map's basemap which can be the one that is set as the default for the project or one of the ArcGIS Online basemaps. If you want create a map without basemap, set it to Basemap.None. (default value = Basemap.ProjectDefault)
Version

CreateMap(String,MapType,MapViewingMode,Basemap) Method
Creates a new Map in the project. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

name
The name of the map
mapType
ArcGIS.Core.CIM.MapType (Optional) The type of the map. (default value = MapType.Map)
defaultViewingMode
ArcGIS.Core.CIM.MapViewingMode (Optional) Map's default viewing mode. (default value = MapViewingMode.Map)
basemap
Basemap (Optional) Map's basemap which can be the one that is set as the default for the project or one of the ArcGIS Online basemaps. If you want create a map without basemap, set it to Basemap.None. (default value = Basemap.ProjectDefault)

Return Value

A map.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Link Charts must be created with MapFactory.CreateLinkChart.
Remarks
To open a map, use ProApp.Panes.CreateMapPaneAsync method.

To create a link chart use MapFactory.CreateLinkChart./>.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also