Hi All, I wanna to create an application to allow the user to perform check-in location with the ArcGIS offline map. I have followed the tutorial using ArcGIS PRO to generates and putting the .mmpk file into the mobile internal storage directory. I manage to read the map but how to set a draggable marker on the map? private void setupMobileMap() {
if (mMapView != null) {
File mmpkFile = DIRECTORY;
final MobileMapPackage mapPackage = new MobileMapPackage(mmpkFile.getAbsolutePath());
mapPackage.addDoneLoadingListener(new Runnable() {
@Override
public void run() {
// Verify the file loaded and there is at least one map
if (mapPackage.getLoadStatus() == LoadStatus.LOADED && mapPackage.getMaps().size() > 0) {
mMapView.setMap(mapPackage.getMaps().get(0));
} else {
// Error if the mobile map package fails to load or there are no maps included in the package
setupMap();
}
}
});
mapPackage.loadAsync();
}
}
... View more