Using the samples I can utilize a FeatureLayer but haven't been able to figure out how to load a mobile map package. Any suggestions?
I see what you are asking. It is a static method so it would be something more like this:
_mappackage = await MobileMapPackage.OpenAsync("D:\\Source code\\Data\\Test.mmpk");
_mappackage = await OpenAsync("D:\\Source code\\Data\\Test.mmpk");
var mapPackageUri = new Uri(_mappackage.Item.Url);
var mapTable = new ServiceFeatureTable(mapPackageUri);
var mapPackageFeatureLayer = new FeatureLayer(mapTable);
More specifically I'm not sure what to do for the OpenAsync method.
I don't understand your question. What do you mean you are not sure what to do?
This MSDN documentation may help better explain how await works:
await (C# Reference)
I'll dig into that a bit more because I'm sure this stems from my lack of experience in c# and Xamarin. In my bit of code above I get the error that OpenAsync does not exist in the current context. I'm not sure if I need to import something else or if I need to define OpenAsync myself.
Thanks a lot Alexander. That's what I needed.
Awesome! Glad that helped! You may want to visit the Early Adopter community as well for more direct feedback with the development team.
ArcGIS Runtime SDK for Xamarin
I'm working off of the Xamarin.Forms api found at (MobileMapPackage.OpenAsync Method )
Retrieving data ...