I am adding a layout to my project. The layout has 3 MapFrames and each MapFrame contains a map. I am trying to figure out how to select a specific map and make it the MapView.Active.Map? I have not found anyway to do this. I want to do this so I can make changes to the extent of the map and zoom to the extent. You can do this in Pro by simply clicking the map and that will make it active. How do I achieve this through the sdk?.
Thanks for the reply, I figured out a way to do what I needed yesterday finally.
Hi Jamal,
I have my own view pane, but I think way is the same as in code below:
foreach (var pane in FrameworkApplication.Panes) { var profilePane = pane as ViewStatePane; if (profilePane != null) { if (profilePane.ContentID == "ceProfilePro_ProfilePane" && profilePane.Caption == item.Text) { profilePane.Activate(); break; } } }
Change pane checking condition with yours.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.