OfflineMapTask

constructor(onlineMap: ArcGISMap)

Create the offline map task for the provided online map. The online map must represent a web map. The online map must be of type com.arcgismaps.portal.PortalItemType.WebMap, either on ArcGIS Online or an on-premise ArcGIS Enterprise Portal.

Since

200.1.0

Parameters

onlineMap

Online map specifying the map to take offline.


constructor(portalItem: PortalItem)

Creates the offline map task with the provided portal item. The portal item must represent a web map. The com.arcgismaps.mapping.PortalItem must be of type com.arcgismaps.portal.PortalItemType.WebMap, either on ArcGIS Online or an on-premise ArcGIS Enterprise Portal.

Since

200.1.0

Parameters

portalItem

A com.arcgismaps.mapping.PortalItem specifying a web map to take offline.