OfflineMapTask.withOnlineMap constructor
- ArcGISMap onlineMap
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 PortalItemType.webMap, either on ArcGIS Online or an on-premise ArcGIS Enterprise Portal.
Parameters:
onlineMap
— Online map specifying the map to take offline.
Implementation
factory OfflineMapTask.withOnlineMap(
ArcGISMap onlineMap,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_OfflineMapTask_createWithOnlineMap(
onlineMap._handle,
errorHandler,
);
});
return OfflineMapTask._withHandle(handle);
}