if (MapEditor.Select.CanExecute("Keyboard")) { MapEditor.SelectionMode = DrawMode.LineSegment; //MapEditor.Select.Execute("Keyboard"); }
Thanks Mike, that resolved the problem with the layer not being visible. I can label its features, but I can't select anything with the Editor toolkit control. Why could that be?
I should note that I also add the dynamic service layer onto the map in addition to the feature layer, because the layer has too many features, so I show both with the feature layer set to OnDemand mode.