TileCacheMapLayer mpLayer = new TileCacheMapLayer(filePath); ESRI.ArcGIS.Mobile.WPF.Map mmap = MobileApplication.Current.Map; mpLayer.Name = "This is my test layer name"; mpLayer.Open(); mmap.MapLayers.Add(mpLayer);
TileCacheMapLayer tileLayer = (TileCacheMapLayer)Convert.ChangeType(mmap.MapLayers.Last(), typeof(TileCacheMapLayer)); string tileName = tileLayer.Name;
ReadOnlyLayerCollection clc = mobileCache.Layers; int iCnt = mobileCache.Layers.Count; for (int i = 0; i < iCnt; i++) { Layer layer = mobileCache.Layers; MobileCacheMapLayer mobileCacheMapLayer = new MobileCacheMapLayer((MobileCacheLayer)layer); map1.MapLayers.Insert(index, mobileCacheMapLayer); }
TileCacheMapLayer mpLayer = new TileCacheMapLayer(streetCache);
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.