<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Subscribe to Map Change Event in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/subscribe-to-map-change-event/m-p/820034#M2788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Susan&lt;/P&gt;&lt;P&gt;To see if the Active Map view changed in Pro, you can subscribe to the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic12616.html"&gt;ActiveMapViewChangedEvent&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To see if a new project was opened, you can subscribe to the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9319.html"&gt;ProjectOpenedEvent&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think these are the events you are looking for.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2019 17:15:41 GMT</pubDate>
    <dc:creator>UmaHarano</dc:creator>
    <dc:date>2019-05-22T17:15:41Z</dc:date>
    <item>
      <title>Subscribe to Map Change Event</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/subscribe-to-map-change-event/m-p/820033#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our application does analysis on the current map. When the user clicks on the button to start up our tool, we have the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; var mv = MapView.Active;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; MainWindow frm1 = new MainWindow();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; frm1.MainMapView = mv;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where MainWindow is where the use can run different analysis. This works great till the user either loads a new project or goes to another map in the current project. The variable mv is understandably still referencing the original active map if the user has not closed the MainWindow. Is there a way to capture the event when the map or project does change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this might be similar to:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/226083-notification-of-active-edit-template-change"&gt;https://community.esri.com/thread/226083-notification-of-active-edit-template-change&lt;/A&gt;, but there was no response to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Susan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 17:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/subscribe-to-map-change-event/m-p/820033#M2787</guid>
      <dc:creator>SusanFarley</dc:creator>
      <dc:date>2019-05-21T17:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Subscribe to Map Change Event</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/subscribe-to-map-change-event/m-p/820034#M2788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Susan&lt;/P&gt;&lt;P&gt;To see if the Active Map view changed in Pro, you can subscribe to the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic12616.html"&gt;ActiveMapViewChangedEvent&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To see if a new project was opened, you can subscribe to the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9319.html"&gt;ProjectOpenedEvent&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think these are the events you are looking for.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 17:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/subscribe-to-map-change-event/m-p/820034#M2788</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2019-05-22T17:15:41Z</dc:date>
    </item>
  </channel>
</rss>

