.TPKX - not working with UWP Runtime

442
0
08-21-2019 10:10 AM
Labels (1)
RAVISOLANKI
New Contributor

I have implemented the following C# code for the .TPKX files:

TileCache tpkxCache = new TileCache(filePath);

ArcGISTiledLayer tpkxLayer = new ArcGISTiledLayer(tpkxCache);

tpkxLayer.Id = "some id here";
tpkxLayer.Name = "Some name here";
await tpkxLayer.LoadAsync();

I have followed:

Release notes for 100.5.0—ArcGIS Runtime SDK for .NET | ArcGIS for Developers 

  • The new Compact Cache V2 format of tile packages (*.tpkx file) available with ArcGIS Pro 2.3 is now supported in the ArcGIS Runtime. This format is based on an open specification and is optimized for fast access and improved performance. You can use the existing ArcGISTiledLayer and TileCache APIs to support the new format. See Take a layer offline for more information on tile packages.

But it always throws an error "File not found" on the last line.

Could someone please help what I am doing wrong here?

Tags (3)
0 Kudos
0 Replies