Hi,
I am able to show mmpk file map into my own IOS app through ArcGIS runtime library. Now I want to give option geocoding and navigation in this mmpk map like Navigator for ArcGIS app through ArcGIS runtime code but I don't find any codebase / ArcGIS class /documentation at the site. Can anyone help me to provide me documentation or code?
Below is the code which I am using to show mmpk file map into device:
self.mapPackage = AGSMobileMapPackage(name: "NewYorkCity")
//load map package
self.mapPackage.loadWithCompletion { [weak self] (error: NSError?) in
if let error = error {
SVProgressHUD.showErrorWithStatus(error.localizedDescription)
}
else {
if let weakSelf = self {
if weakSelf.mapPackage.maps.count > 0 {
//assign the first map from the map package to the map view
weakSelf.mapView.map = weakSelf.mapPackage.maps[0]
}
else {
SVProgressHUD.showErrorWithStatus("No mobile maps found in the map package")
}
}
}
Thanks,
Kamal
We have a sample you can use.