Using ArcGIS Pro 3.5x. Consuming ParcelFabric as a feature service.
TOC shows wrong version:
- Open project with 2 maps in 2 separate panes, Map1 (the active one) and Map2.
- Change version (see code below), new version named yadaversion
- List By Data Source in the Contents pane.
- Map1: sde.yadaversion Map2: sde.DEFAULT
- Save project and reopen.
- Map1: sde.yadaversion Map2: sde.yadaversion
var maps = Project.Current.GetItems<MapProjectItem>().Select(mpi => mpi.GetMap());
foreach (var map in maps)
{
map.ChangeVersion(currentVersion, newVersion);
}TOC shows correct version:
- Open project with 2 maps in 2 separate panes, Map1 (the active one) and Map2.
- Click on Map2 to make it active (initializing/loading?)
- Change version (see code above), new version named yadaversion
- List By Data Source in the Contents pane.
- Map1: sde.yadaversion Map2: sde.yadaversion
- SUCCESS!
Conclusion
It seem to me that I have to make sure to "open/activate" Map2 for it to get initialized.
Bug? How would I go about to "initialize" the Map2 pane without setting it to Active (weird map switching occur for user) in the code?