<?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: Re-using already downloaded map (on-demand) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/re-using-already-downloaded-map-on-demand/m-p/1144319#M10763</link>
    <description>&lt;P&gt;When you download an offline map using the OfflineMapTask, Runtime will create a folder at the location you specify when you create the new GenerateOfflineMapJob, and will download and write a number of resources into that folder. As you noticed, there is a .mmap file, but you should consider the folder to be a black box.&lt;/P&gt;&lt;P&gt;To re-use the already downloaded offline map, as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7529"&gt;@JoeHershman&lt;/a&gt;&amp;nbsp;shows below, you create a new MobileMapPackage with the same folder you specified when you downloaded the offline map. Then get the first map from it. See &lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/offline/offline-maps/working-with-offline-maps/#access" target="_blank"&gt;this documentation&lt;/A&gt; for more info.&lt;/P&gt;&lt;P&gt;Note, you do not need to explicitly load the map or its operational layers unless you plan on reading their metadata before they are displayed in a map view.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 21:28:39 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2022-02-15T21:28:39Z</dc:date>
    <item>
      <title>Re-using already downloaded map (on-demand)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/re-using-already-downloaded-map-on-demand/m-p/1144002#M10760</link>
      <description>&lt;P&gt;I'm using ArcGIS Runtime for .NET with WPF UI framework, version 100.13.0 and I am trying to re-use the map files downloaded with code from this tutorial:&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/offline-maps-scenes-and-data/tutorials/display-an-offline-map-on-demand/" target="_self"&gt;Display an offline map (on-demand)&lt;/A&gt;. After looking through the downloaded files I found the .mmap file which, I assume, is a Mobile Map file. Does this have anything to do with mobile map packages? Is my app destined to re-download the AOI for offline use on each launch?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 12:30:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/re-using-already-downloaded-map-on-demand/m-p/1144002#M10760</guid>
      <dc:creator>stettdev</dc:creator>
      <dc:date>2022-02-15T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re-using already downloaded map (on-demand)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/re-using-already-downloaded-map-on-demand/m-p/1144089#M10761</link>
      <description>&lt;P&gt;You can either download a new copy of the map, or open what exists on the device.&amp;nbsp; If you open the offline map it would not download a new version, you have to explicitly download&lt;/P&gt;&lt;LI-CODE lang="c"&gt;MobileMapPackage localMapArea = await MobileMapPackage.OpenAsync(mapPackagePath);
//assuming a single map in map package
var map = localMapArea.Maps.First();
await map.LoadAsync();
//This just makes sure all the FeatureLayers are loaded
map.OperationalLayers.ToList().ForEach(async l =&amp;gt; await l.LoadAsync());&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 15:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/re-using-already-downloaded-map-on-demand/m-p/1144089#M10761</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2022-02-15T15:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re-using already downloaded map (on-demand)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/re-using-already-downloaded-map-on-demand/m-p/1144319#M10763</link>
      <description>&lt;P&gt;When you download an offline map using the OfflineMapTask, Runtime will create a folder at the location you specify when you create the new GenerateOfflineMapJob, and will download and write a number of resources into that folder. As you noticed, there is a .mmap file, but you should consider the folder to be a black box.&lt;/P&gt;&lt;P&gt;To re-use the already downloaded offline map, as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7529"&gt;@JoeHershman&lt;/a&gt;&amp;nbsp;shows below, you create a new MobileMapPackage with the same folder you specified when you downloaded the offline map. Then get the first map from it. See &lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/offline/offline-maps/working-with-offline-maps/#access" target="_blank"&gt;this documentation&lt;/A&gt; for more info.&lt;/P&gt;&lt;P&gt;Note, you do not need to explicitly load the map or its operational layers unless you plan on reading their metadata before they are displayed in a map view.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 21:28:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/re-using-already-downloaded-map-on-demand/m-p/1144319#M10763</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2022-02-15T21:28:39Z</dc:date>
    </item>
  </channel>
</rss>

