Parameters
- item
- An ArcGIS.Desktop.Core.Item.
Return Value
A boolean indicates that a map can be created from the item.
Map map = null; //Assume we get the selected webmap from the Project pane's Portal tab if (Project.Current.SelectedItems.Count > 0) { if (MapFactory.Instance.CanCreateMapFrom(Project.Current.SelectedItems[0])) { map = MapFactory.Instance.CreateMapFromItem(Project.Current.SelectedItems[0]); await ProApp.Panes.CreateMapPaneAsync(map); } }
Target Platforms: Windows 11, Windows 10