<?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: Save and Load Map in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/save-and-load-map/m-p/1155217#M10835</link>
    <description>&lt;P&gt;A little more information about what you want to accomplish by &lt;EM&gt;saving&lt;/EM&gt; the map might be helpful.&amp;nbsp; A map is simply a collection of layers and the configuration of those layers.&amp;nbsp; There is a Map.ToJson method which allows you to write out the definition of the Map in Json and there is a FromJson method that could rehydrate a map object with that same definition.&lt;/P&gt;&lt;P&gt;I think that is probably what you would want if you are trying to save a Map object definition.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 13:32:29 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2022-03-18T13:32:29Z</dc:date>
    <item>
      <title>Save and Load Map</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/save-and-load-map/m-p/1155200#M10834</link>
      <description>&lt;P&gt;Hi, I'm new to runtime SDK WPF. I don't know how to Save Map with several layers on local file and Load Map next time, just like mxd or arpx file. Can you help me, please？&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 12:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/save-and-load-map/m-p/1155200#M10834</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-18T12:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Save and Load Map</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/save-and-load-map/m-p/1155217#M10835</link>
      <description>&lt;P&gt;A little more information about what you want to accomplish by &lt;EM&gt;saving&lt;/EM&gt; the map might be helpful.&amp;nbsp; A map is simply a collection of layers and the configuration of those layers.&amp;nbsp; There is a Map.ToJson method which allows you to write out the definition of the Map in Json and there is a FromJson method that could rehydrate a map object with that same definition.&lt;/P&gt;&lt;P&gt;I think that is probably what you would want if you are trying to save a Map object definition.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 13:32:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/save-and-load-map/m-p/1155217#M10835</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2022-03-18T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Save and Load Map</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/save-and-load-map/m-p/1155530#M10839</link>
      <description>&lt;P&gt;I start my wpf app, load some local data layers, then "save the map". When I start my app next time, I can load the map with layers and everything saved last time. I've tried Map.ToJson(), it seams only save the basic map infomation, but no local data layers. Do I have to write a custom project file by myself? I'm not sure if arcgis runtime sdk support loading map directly from arcgis pro file (*.arpx), and save changes back.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arcgispro.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36794i517ABEFA6C38C34E/image-size/large?v=v2&amp;amp;px=999" role="button" title="arcgispro.png" alt="arcgispro.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 16:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/save-and-load-map/m-p/1155530#M10839</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-03-20T16:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Save and Load Map</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/save-and-load-map/m-p/1155733#M10843</link>
      <description>&lt;P&gt;I had never really looked at the ToJson() output I had just assumed it would have everything, but I see that I was the wrong in that assumption.&lt;/P&gt;&lt;P&gt;I think the best way to do something along those lines would be to look at a mobile map package and mimic that in saving the map.&amp;nbsp; The mobile map package is basically just a folder that contains everything that is in the offline map.&amp;nbsp; One of the things in there is a mobile_map.mmap file which contains the json defining the entire map including layers (this is what I had assumed the ToJson output was).&lt;/P&gt;&lt;P&gt;I am still not clear how you are initially loading a map and why that approach is not available the second time you want to load a map, as opposed to this idea of saving it.&amp;nbsp; In any workflow I have used either I am using an offline map package, have all the data stored offline in a known structure, or am using an online map.&lt;/P&gt;&lt;P&gt;I am still not really understanding why you need a separate mechanism to save/open the map vs. just using the code that originally loaded the map&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 14:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/save-and-load-map/m-p/1155733#M10843</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2022-03-21T14:59:37Z</dc:date>
    </item>
  </channel>
</rss>

