<?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: MapFactory Instance CreateMap does not add Map to Project in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mapfactory-instance-createmap-does-not-add-map-to/m-p/854478#M4437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct, Uma. After further research yesterday, the map showed up a couple of times when I ran that line of code. It seems to maybe be more related to the map than the line of code I pointed out, since sometimes it does show up...or maybe something else. I am not seeing consistent behavior with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2019 15:00:38 GMT</pubDate>
    <dc:creator>StephenDavis1</dc:creator>
    <dc:date>2019-09-27T15:00:38Z</dc:date>
    <item>
      <title>MapFactory Instance CreateMap does not add Map to Project</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mapfactory-instance-createmap-does-not-add-map-to/m-p/854476#M4435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to add a new map to my Pro project (Pro 2.4.1) via c# and it is not working. My code looks like this:&lt;/P&gt;&lt;P&gt;var map = MapFactory.Instance.CreateMap("New Map", basemap: Basemap.None);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It creates the map object fine (I can access it via c# and add layers to it and save it as a map file), but it does not add the map to the project to be used there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the documentation here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Authoring" title="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Authoring"&gt;ProConcepts Map Authoring · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Methods such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #24292e; background-color: rgba(27, 31, 35, 0.05); padding: 0.2em 0.4em;"&gt;MapFactory.Instance.CreateMap()&lt;/CODE&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;add the newly created map into the current project. You do not need to write additional code for adding a map to a project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything else I can try to get this map addes to my project?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 01:32:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/mapfactory-instance-createmap-does-not-add-map-to/m-p/854476#M4435</guid>
      <dc:creator>StephenDavis1</dc:creator>
      <dc:date>2019-09-26T01:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: MapFactory Instance CreateMap does not add Map to Project</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mapfactory-instance-createmap-does-not-add-map-to/m-p/854477#M4436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen&lt;/P&gt;&lt;P&gt;To clarify, can you please confirm if you are not able to see the new map in your Project Catalog Pane within the Maps collection like this screenshot below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code should add the new map to the Maps collection as you see below.&amp;nbsp; You will have to actually open the new Map to see it in a Map View (Code &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapAuthoring#find-a-map-within-a-project-and-open-it"&gt;here &lt;/A&gt;does that). CreateMap method will not open the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/460519_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 18:02:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/mapfactory-instance-createmap-does-not-add-map-to/m-p/854477#M4436</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2019-09-26T18:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: MapFactory Instance CreateMap does not add Map to Project</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/mapfactory-instance-createmap-does-not-add-map-to/m-p/854478#M4437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct, Uma. After further research yesterday, the map showed up a couple of times when I ran that line of code. It seems to maybe be more related to the map than the line of code I pointed out, since sometimes it does show up...or maybe something else. I am not seeing consistent behavior with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/mapfactory-instance-createmap-does-not-add-map-to/m-p/854478#M4437</guid>
      <dc:creator>StephenDavis1</dc:creator>
      <dc:date>2019-09-27T15:00:38Z</dc:date>
    </item>
  </channel>
</rss>

