<?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: No event for a map being added to a Project in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/no-event-for-a-map-being-added-to-a-project/m-p/727596#M111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Observable Collection of Items (which includes maps) of the Project class:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9221.html" title="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9221.html"&gt;ArcGIS Pro 2.5 API Reference Guide&lt;/A&gt;&amp;nbsp; &amp;nbsp;in order to listen for change events.&amp;nbsp; Make sure to check that the added/removed item is a Map since folders, layouts, etc. are all Project Items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2020 19:49:18 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2020-06-05T19:49:18Z</dc:date>
    <item>
      <title>No event for a map being added to a Project</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/no-event-for-a-map-being-added-to-a-project/m-p/727595#M110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a custom Add-In, I have a method I want to call both when a Map is removed from a Project, as well as when a Map is added. There is a clearly defined event for the former - MapRemovedEvent - which we're using. I don't see an equivalent, e.g. MapAddedEvent. The closest thing I've found is MapViewInitializedEvent, which technically works for our purpose, but it's also going to cause unnecessary method calls when a user opens a tab for a previously created Map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no map added event, are there plans to add one in 2.6 or later?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 18:02:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/no-event-for-a-map-being-added-to-a-project/m-p/727595#M110</guid>
      <dc:creator>DavidLaMartina</dc:creator>
      <dc:date>2020-06-05T18:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: No event for a map being added to a Project</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/no-event-for-a-map-being-added-to-a-project/m-p/727596#M111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Observable Collection of Items (which includes maps) of the Project class:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9221.html" title="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9221.html"&gt;ArcGIS Pro 2.5 API Reference Guide&lt;/A&gt;&amp;nbsp; &amp;nbsp;in order to listen for change events.&amp;nbsp; Make sure to check that the added/removed item is a Map since folders, layouts, etc. are all Project Items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 19:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/no-event-for-a-map-being-added-to-a-project/m-p/727596#M111</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2020-06-05T19:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: No event for a map being added to a Project</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/no-event-for-a-map-being-added-to-a-project/m-p/727597#M112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, in addition to Wolf's suggestion, please see the below event. The &lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9313.html"&gt;ProjectItemsChangedEventArgs &lt;/A&gt;will tell you what the change is (map added, removed, layout added, removed, etc,etc) via its Action and ProjectItem properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9303.html"&gt;ArcGIS.Desktop.Core.Events.ProjectItemsChangedEvent&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 23:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/no-event-for-a-map-being-added-to-a-project/m-p/727597#M112</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2020-07-27T23:49:51Z</dc:date>
    </item>
  </channel>
</rss>

