Method CreateDefaultDownloadPreplannedOfflineMapParametersAsync
CreateDefaultDownloadPreplannedOfflineMapParametersAsync(PreplannedMapArea)
Generates default DownloadPreplannedOfflineMapParameters that are specific to the PreplannedMapArea.
Declaration
public Task<DownloadPreplannedOfflineMapParameters> CreateDefaultDownloadPreplannedOfflineMapParametersAsync(PreplannedMapArea preplannedMapArea)
Parameters
| Type | Name | Description |
|---|---|---|
| PreplannedMapArea | preplannedMapArea | The preplanned region of the online map that is to be taken offline. |
Returns
| Type | Description |
|---|---|
| Task<DownloadPreplannedOfflineMapParameters> | DownloadPreplannedOfflineMapParameters created from the specified PreplannedMapArea with default values. |
Remarks
A convenience method to create DownloadPreplannedOfflineMapParameters with default values appropriate for taking the specified map area offline. The parameters will be populated using the values in the online map's OfflineSettings (if present). If the webmap author has set a reference basemap filename, this will be set in the ReferenceBasemapFilename property.
Exceptions
| Type | Condition |
|---|---|
| PackagingNotCompleteException | Packaging of the map area is not complete and is not ready for download. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.5 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.5 - 200.8 |
| Xamarin.Android | 100.5 - 100.15 |
| Xamarin.iOS | 100.5 - 100.15 |
| UWP | 100.5 - 200.8 |