ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / MapType Enumeration
Example Example

In This Topic
    MapType Enumeration
    In This Topic
    Types of maps.
    Syntax
    Members
    MemberDescription
    Basemap A basemap.
    ContainmentMap A containment map.
    LinkChart A link chart.
    Map A 2D map.
    NetworkDiagram A network diagram.
    Scene A scene.
    Example
    Get and set the link chart layout
    {
      //var map = MapView.Active.Map;
      // a MapView can encapsulate a link chart IF it's map
      // is of type MapType.LinkChart
      var isLinkChart = map.MapType == MapType.LinkChart;
      // or use the following
      // var isLinkChart = map.IsLinkChart;
    
      var mv = MapView.Active;
    
      await QueuedTask.Run(() =>
      {
        if (isLinkChart)
        {
          // get the layout algorithm
          var layoutAlgorithm = mv.GetLinkChartLayout();
    
          // toggle the value
          if (layoutAlgorithm == KnowledgeLinkChartLayoutAlgorithm.Geographic_Organic_Standard)
            layoutAlgorithm = KnowledgeLinkChartLayoutAlgorithm.Organic_Standard;
          else
            layoutAlgorithm = KnowledgeLinkChartLayoutAlgorithm.Geographic_Organic_Standard;
    
          // set it
          mv.SetLinkChartLayoutAsync(layoutAlgorithm);
    
          // OR set it and force a redraw / update
          // await mv.SetLinkChartLayoutAsync(layoutAlgorithm, true);
        }
      });
    }
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Core.CIM.MapType

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also