Hi Chad,
Thanks for your reply. Here is the sample code.
try
{
if (message.SelectedLayers.Count != 0)
{
var offlayer = message.SelectedLayers;
Acr.UserDialogs.UserDialogs.Instance.ShowLoading("Loading Offline Map", Acr.UserDialogs.MaskType.Black);
ArcGISTiledLayer layer = await ShowBaseMapsMenuEditMessage.OffLineMap.LoadTileCache("/storage/emulated/0/SmartMaps/" + “FileNameIS.tpk");
// Create basemap
Basemap basemap = new Basemap();
// Get layers from file
basemap.BaseLayers.Add(layer);
Map = new Map(basemap);
if (layer.LoadStatus != Esri.ArcGISRuntime.LoadStatus.Loaded)
{
Acr.UserDialogs.UserDialogs.Instance.ShowSuccess("Could not load tile cache", 1000);
}
else
{
Acr.UserDialogs.UserDialogs.Instance.ShowSuccess("Tile cache loaded successfully.", 1000);
}
}
}
catch (Exception rr)
{
Acr.UserDialogs.UserDialogs.Instance.ShowSuccess("Incourrect format", 1000);
}
Thanks,
Niladri