<?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: Xamarin.Forms shared: Create a Basemap from a local path file in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492811#M6054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not currently using IOS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Shared project across all platforms (UWP, Android, IOS).&lt;/P&gt;&lt;P&gt;Currently only focusing on the Xamarin.Forms.UWP app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var tpkFile = new Uri(@"C:\Documents\NaturalEarth.tpk");&lt;BR /&gt;ArcGISTiledLayer layer = new ArcGISTiledLayer(tpkFile);&lt;BR /&gt;Map = new Map(new Esri.ArcGISRuntime.Mapping.Basemap(layer));&lt;/P&gt;&lt;P&gt;WPF app : Shows the TPK file as the Basemap.&lt;/P&gt;&lt;P&gt;UWP app : The MapView remains blank and the LoadStatus remains Loading on the layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 May 2020 18:02:43 GMT</pubDate>
    <dc:creator>ShaneHulligan</dc:creator>
    <dc:date>2020-05-23T18:02:43Z</dc:date>
    <item>
      <title>Xamarin.Forms shared: Create a Basemap from a local path file</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492809#M6052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to using Xamarin.Forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a Basemap by using a local file path to a .tpk file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var tpkFile = new Uri(@"LocalPath\File.tpk");&lt;BR /&gt;ArcGISTiledLayer layer = new ArcGISTiledLayer(tpkFile);&lt;BR /&gt;Map = new Map(new Esri.ArcGISRuntime.Mapping.Basemap(layer));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same process is shared across Xamarin.Forms UWP &amp;amp; a WPF application.&lt;/P&gt;&lt;P&gt;The WPF application loads as expected.&lt;/P&gt;&lt;P&gt;However, the Xamarin.Forms UWP changes the layers LoadStatus to Loading and no further.&lt;/P&gt;&lt;P&gt;Similar, the Map DrawStatus changes to IsProgress and no further.&lt;/P&gt;&lt;P&gt;Why is this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 12:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492809#M6052</guid>
      <dc:creator>ShaneHulligan</dc:creator>
      <dc:date>2020-05-22T12:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin.Forms shared: Create a Basemap from a local path file</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492810#M6053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to you load the file onto the device in iOS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 20:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492810#M6053</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2020-05-22T20:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin.Forms shared: Create a Basemap from a local path file</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492811#M6054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not currently using IOS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Shared project across all platforms (UWP, Android, IOS).&lt;/P&gt;&lt;P&gt;Currently only focusing on the Xamarin.Forms.UWP app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var tpkFile = new Uri(@"C:\Documents\NaturalEarth.tpk");&lt;BR /&gt;ArcGISTiledLayer layer = new ArcGISTiledLayer(tpkFile);&lt;BR /&gt;Map = new Map(new Esri.ArcGISRuntime.Mapping.Basemap(layer));&lt;/P&gt;&lt;P&gt;WPF app : Shows the TPK file as the Basemap.&lt;/P&gt;&lt;P&gt;UWP app : The MapView remains blank and the LoadStatus remains Loading on the layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2020 18:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492811#M6054</guid>
      <dc:creator>ShaneHulligan</dc:creator>
      <dc:date>2020-05-23T18:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin.Forms shared: Create a Basemap from a local path file</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492812#M6055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a restriction of the UWP 'sandbox' - you will need to take one of the following approaches:&lt;/P&gt;&lt;P&gt;- Include the file with your application&lt;/P&gt;&lt;P&gt;- Prompt the user to browse to a location they give the app permission to&amp;nbsp;access&lt;/P&gt;&lt;P&gt;- Read the file from one of the locations that all UWP apps can access (note you will need to request that capability in your app manifest).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information see&amp;nbsp;&lt;A class="link-titled" href="https://docs.microsoft.com/en-us/windows/uwp/files/file-access-permissions" title="https://docs.microsoft.com/en-us/windows/uwp/files/file-access-permissions"&gt;File access permissions - UWP applications | Microsoft Docs&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 18:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492812#M6055</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2020-05-25T18:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin.Forms shared: Create a Basemap from a local path file</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492813#M6056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the post.&lt;/P&gt;&lt;P&gt;However, none of which seem to be a solution. I must be missing something.&lt;/P&gt;&lt;P&gt;Projects include:&amp;nbsp;&lt;/P&gt;&lt;P&gt;MyMap.App&lt;/P&gt;&lt;P&gt;MyMap.App.Android&lt;/P&gt;&lt;P&gt;MyMap.App.UWP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyMap.App includes the following:&lt;/P&gt;&lt;P&gt;MapPage.xaml&lt;/P&gt;&lt;P&gt;MapPageViewModel.cs&lt;/P&gt;&lt;P&gt;The viewmodel is running the following code:&lt;/P&gt;&lt;P&gt;var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "NaturalEarth3857.tpk");&lt;BR /&gt;ArcGISTiledLayer arcGISTiledLayer = new ArcGISTiledLayer(new Uri(path));&lt;BR /&gt;Map = new Map(new Esri.ArcGISRuntime.Mapping.Basemap(arcGISTiledLayer));&lt;BR /&gt; Map.LoadStatusChanged += Map_LoadStatusChanged;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither UWP or Android complete the load of the file. I have followed the guidance of the link sent by adding&amp;nbsp;documentsLibrary as a capability in the app manifest. But still nothing.&lt;/P&gt;&lt;P&gt;Can you help please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 13:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-shared-create-a-basemap-from-a-local/m-p/492813#M6056</guid>
      <dc:creator>ShaneHulligan</dc:creator>
      <dc:date>2020-05-26T13:57:16Z</dc:date>
    </item>
  </channel>
</rss>

