We are working on a Xamarin Forms app supporting UWP platform. The app has a page which displays the ESRI map and the source of the map is an offline tpk file stored locally. When we run the app on our ASUS Windows laptop with touch screen, we are able to pan and pinch the map with no issues. However, when we run the app on a Panasonice ToughPad running Windows OS, the map loads up as expected but we are not able to pan or pinch using the touch screen. Is there anything we are missing here or any issue with the tpk file we received. Any help would be highly appreciated. Thanks in advance.
... View more
I am running a Xamarin Forms application supporting both UWP and iOS. We have a TPK file on the device to be used in offline mode. And it works perfectly fine in UWP. I can see the map, interact with it. But in iOS, I get a blank map. The map initialization code is the same for both platforms. I use different code to load the map based on the Device OS platform // Using following code to load map on iPad. The tpk file is stored in Files app on iPad and we are allowing user to select the tpk file
var result = await FilePicker.PickAsync();
var mapPath = result.FullPath;
var tileCache = new TileCache(mapPackagePath); ArcGISTiledLayer tileLayer = new ArcGISTiledLayer(tileCache);
Map = new Map(new Basemap(tileLayer));
// Using following code to load on Windows (UWP). On Windows, we are just providing the path where tpk file is located and it works fine.
var mapPackageFolder = @"C:\Temp\Map Files";
var mapPackageFile = @"Topo.tpk";
var mapPackagePath = System.IO.Path.Combine(mapPackageFolder,mapPackageFile); var tileCache = new TileCache(mapPackagePath);
ArcGISTiledLayer tileLayer = new ArcGISTiledLayer(tileCache);
Map = new Map(new Basemap(tileLayer)); Following is the result in UWP: Working sample in UWP Following is the result in iOS: Sample in iOS Can someone help me with this? Thanks in advance.
... View more