Class GenerateOfflineMapJob
A job that generates and downloads the offline map for a specific area of interest from a web map that is enabled for offline use.
Namespace: Esri.ArcGISRuntime.Tasks.Offline
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class GenerateOfflineMapJob : Job<GenerateOfflineMapResult>
Remarks
This job is part of the on-demand offline workflow. Use this job to generate and download the offline map to your device so that you can work offline without a network connection.
To make a GenerateOfflineMapJob, use the OfflineMapTask as follows:
- Construct and load the OfflineMapTask with a web map that is enabled for offline use. For more information about enabling web maps for offline use see Take web maps offline.
- If necessary, check the web map's offline capabilities by using GetOfflineMapCapabilitiesAsync(GenerateOfflineMapParameters).
- Create a Geometry to define the area of interest that you wish to take offline.
- Obtain the default GenerateOfflineMapParameters for the area of interest by calling CreateDefaultGenerateOfflineMapParametersAsync(Geometry).
- Use the GenerateOfflineMapParameters to create a GenerateOfflineMapJob by calling GenerateOfflineMap(GenerateOfflineMapParameters, String). You must specify a path to a folder where the map content will be stored on the device.
Start the GenerateOfflineMapJob and monitor progress. Upon completion, the job's GenerateOfflineMapResult provides the offline map along with the details of any errors incurred during the generate and download process.
See the
Properties
Name | Description |
---|---|
DownloadDirectoryPath | Gets the download directory used by this job to write the mobile map package result. |
OnlineMap | Gets the online Map used by this job. |
ParameterOverrides | Gets the GenerateOfflineMapParameterOverrides used by this job. |
Parameters | Gets the GenerateOfflineMapParameters used by this job. |
Methods
Name | Description |
---|---|
FromJson(String) | Creates a job from JSON. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |