packagingStatus property
Describes the packaging status of the online map area.
This property allows you to check whether an online PreplannedMapArea is in a PreplannedPackagingStatus.complete state and ready to be downloaded.
If you attempt to load a PreplannedMapArea that is not PreplannedPackagingStatus.complete the PreplannedMapArea will fail to load with an error of ArcGISExceptionType.commonIllegalState.
There are four possible values:
- PreplannedPackagingStatus.complete indicates the map area is ready for download and the data has been packaged
- PreplannedPackagingStatus.processing indicates that the online map area is not yet ready to be downloaded. The packages required for the map area have not been packaged yet. This status will be available after the PreplannedMapArea fails to load.
- PreplannedPackagingStatus.failed indicates that an error was encountered while preparing the online map area or its packages. In this scenario, the map area cannot be downloaded until the web map author has resolved the errors. This status will be available after the PreplannedMapArea fails to load.
- PreplannedPackagingStatus.unknown indicates that the metadata for the map area has not been fetched. This will be the value when the map area is LoadStatus.notLoaded.
If the packaging status is PreplannedPackagingStatus.processing you can check it again following these steps:
- Create a new PortalItem instance using the PortalItem.uri in the PreplannedMapArea.portalItem.
- Create a new PreplannedMapArea using the portal item PreplannedMapArea.withItem.
- Load the PreplannedMapArea and check PreplannedMapArea.packagingStatus.
Implementation
PreplannedPackagingStatus get packagingStatus {
final coreValue = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_PreplannedMapArea_getPackagingStatus(
_handle,
errorHandler,
);
});
return PreplannedPackagingStatus._fromCoreValue(
coreValue,
);
}