Add layers to ESRI.ArcGIS.Mobile.WPF.Map component

2681
1
05-22-2012 09:32 AM
Labels (1)
LasyaParupalli
New Contributor
I am working on building ArcGis mobile application for windows using WPF. I am using ESRI.ArcGIS.Mobile.WPF.Map dll in my application.
I have operational layer as mobilecahe and other layers in BaseMap layers.


To access the mobilecache I am using the following code:
    MobileCache m_mobileCache = new MobileCache();
    m_mobileCache.StoragePath = @"C:\MobileCache";
    m_mobileCache.Open();
    map1.MapLayers.AddRange(m_mobileCache);


I am trying to add basemap layers to map1 using the following code but was not able to see the layers in the Map.


TileCacheMapLayer tclm0 = new TileCacheMapLayer(@"C:\BaseMap\Layers\_alllayers\L00");
  tclm0.Open();
  map1.MapLayers.Add(tclm0);

Is there any other way to access basemap layers and add it to the map1.
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
0 Kudos