Hello, I am attempting to load a local XYZ tiles to my map. I feel like the relevant example is this so I have followed this is https://developers.arcgis.com/net/wpf/sample-code/web-tiled-layer/ but instead of a Url I am pointing to a local folder on my PC.
private readonly string _templateUri = "file:///C:\\Users/Zach/Desktop/DEM/XYZ2/{z}/{x}/{y}.png";
// List of subdomains for use when constructing the web tiled layer
private readonly List<string> _tiledLayerSubdomains = new List<string> { "12" };
public mapviewTest()
{
InitializeComponent();
Initialize();
}
private void Initialize()
{
// Create the layer from the URL and the subdomain list
WebTiledLayer myBaseLayer = new WebTiledLayer(_templateUri, _tiledLayerSubdomains);
// Create a basemap from the layer
Basemap layerBasemap = new Basemap(myBaseLayer);
// Create a map to hold the basemap
Map myMap = new Map(layerBasemap);
// Add the map to the map view
MyMapView.Map = myMap;
} The main folder has a Subfolder named "12" then in that folder several other folders with numbers which is where the actual PNG images live.


Am I going about this the correct way?