what would be the best way to expose a feature class which is stored in a (file) geodatabase in a WPF ESRI Map Control as a Feature Layer using ArcGIS Runtime. Currently we are using a empty map file (.mxd), add a reference to the feature class and save it as a new map file (.mxd), convert the .mxd to a map package with runtime support (.mpk) and then consume it as a LocalArcGISFeatureLayer. Would you agree that this is the best and preferred ESRI way?
Hi,Instead of using Package Map GP Tool to create the .mpk another workflow would be be the following:> Open up the .mxd containing your File Geodatabase or a reference to your File Geodatabase in ArcMap.> Navigate to File > Share As > Map Package and make sure "Support ArcGIS Runtime" is checked> Check on "Reference all data" if you want to create a map package that points to the data needed rather than copying the data.> The .mpk can then be consumed in your WPF application. http://resourcesbeta.arcgis.com/en/help/runtime-wpf/concepts/#/How_to_create_a_map_package/01700000005t000000/Thanks,Kerrie
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.