AnsweredAssumed Answered

Xamarin.Forms shared: Create a Basemap from a local path file

Question asked by Shulligan on May 22, 2020
Latest reply on May 26, 2020 by Shulligan

I am new to using Xamarin.Forms.


I am trying to create a Basemap by using a local file path to a .tpk file.


var tpkFile = new Uri(@"LocalPath\File.tpk");
ArcGISTiledLayer layer = new ArcGISTiledLayer(tpkFile);
Map = new Map(new Esri.ArcGISRuntime.Mapping.Basemap(layer));


The same process is shared across Xamarin.Forms UWP & a WPF application.

The WPF application loads as expected.

However, the Xamarin.Forms UWP changes the layers LoadStatus to Loading and no further.

Similar, the Map DrawStatus changes to IsProgress and no further.

Why is this?


Can anyone help?