ArcGIS Pro二次开发-创建新的地图
// create custom basemap in your current project Map basemap = null; Task task = QueuedTask.Run(() => { basemap =MapFactory.Instance.CreateMap("gisoracle", MapType.Map); }); task.Wait(); // create and add layer to the basemap using LayerFactory.Instance string url = @"F:\2020book\toolforpro\MyProject3\1.shp"; Uri uri = new Uri(url); QueuedTask.Run(() => { Layer lyr = LayerFactory.Instance.CreateLayer(uri, basemap); });