So rephrasing and coming back to my original question
I have multiple features classes in a file geodatabase.
- What is the best way to display these on the Map control ?
- What is the best way to display these features classes as Feature Layers, so they can be editied, on the Map control.
1) Use a LocalMapService with a DynamicWorkspace to display them. This means i will need an empty or initial mpk that can be consumed by the LocalMapService.
2) Create a mxd that adds references to the Feature classes in the file gdb, convert mxd to mpk and and consume it as LocalFeatureLayer.
NOTE: currently LocalFeatureService doesn't support DynamicWorkspace to edit data.
is this correct?
Thank you!
EDIT:
I added an image to explain what i'm currently doing to load Feature classes from the GDB into the application (and enable editing if necessary).
So my goal:
To display and, if needed, edit feature classes from a File geodatabase within the WPF app.
The image shows my current implementation: Create MXD, add feature class reference, save, convert to MPK and Load and display layer.
I would like an implementation where you can let the ArcGIS runtime point directly to the File geodatabase without using an MPK and enables you to edit data.
Currently the DynamicLayers option comes close, but it needs an MPK and doesn't support editing yet.
Can you comment on this? Thank you!