I need to display upto 3 separate views of feature class that is located inside of a mobile geodatabase on a MapView. The feature class/dataset needs to be displayed on three separate layers, which each layer will be using a different field that is symbolized (in this case to show fire, vegetation, and drought conditions). I can add the first layer using:
featureLayer = new Esri.ArcGISRuntime.Mapping.FeatureLayer(Workspace.GetGeodatabaseFeatureTable(ActualFeatureClassName)
I create a classbreaks renderer, and then add the layer to the map :
Dispatcher.Invoke(() => MainMapView.Map.OperationalLayers.Add(myLayer));
and it adds ok.
When I try to create a new second layer using the same command, I get an error, "Object is already owned: Already Owned".
So the user may create one, two, or three layers (but it could be more in the future). Is there any way to handle the case where we need to have more than one layer to be displayed off of the same feature dataset/feature class.
Susan