AnsweredAssumed Answered

Why are my layers not being displayed?

Question asked by ccposton on Nov 8, 2012
Latest reply on Jan 4, 2013 by ccposton
I'm adding feature layers to my map at runtime, but they're not showing up. They show up correctly in the Legend control, but they're not visible in the map. What am I doing wrong here?

LocalFeatureService.GetServiceAsync(@"\\dtdev7240w7\Terminated\GIS Data\clark gis\clark2layers.mpk", featureService =>  {   foreach (var layerDetails in featureService.MapLayers)   {    var featureLayer = new ArcGISLocalFeatureLayer(featureService, layerDetails.Name);    featureLayer.ID = layerDetails.Name;    MyMap.Layers.Add(featureLayer);   }  } );