A task used to take a map offline.
public sealed class OfflineMapTask
Taking a map offline involves downloading an online map and its data, including all the supported layers, tables, renderers, web map configuration etc. so that it can be used offline without a network connection. There are two workflows available for taking maps offline:
- The ahead-of-time workflow (also sometimes referred to as the preplanned workflow).
- The on-demand workflow.
Ahead-of-time workflow. In this workflow the author of a web map defines geographical areas (offline map areas) to take offline.ArcGIS Online, or ArcGIS Enterprise, uses these to prepare offline map content that is stored online. ArcGIS Runtime apps download the offline map content to a device using the DownloadPreplannedOfflineMapJob. Note that ArcGIS Runtime APIs refer to an offline map area as a PreplannedMapArea. For more information about authoring offline map areas, see Take web maps offline.
On-demand workflow. Here the app passes a specific area of interest to a GenerateOfflineMapJob to generate and download the map content to the device. Using this workflow, you can choose to keep online only services (e.g. those that require a network connection) in your offline map. Be aware that an offline map which uses online only services will require a network connection and may require authentication.
Gets the online Map to be taken offline.
Gets the PortalItem specifying the map to be take offline.
|.NET Standard 2.0||100.3 - 100.15|
|.NET 6.0||100.13 - 100.15|
|.NET 6.0 Windows||100.13 - 100.15|
|.NET Framework||100.1 - 100.15|
|.NET 5||100.10 - 100.12|
|.NET Core 3.1||100.7 - 100.12|
|Xamarin.Android||100.1 - 100.15|
|Xamarin.iOS||100.1 - 100.15|
|UWP||100.1 - 100.15|