suspend fun createDefaultGenerateOfflineMapParameters(areaOfInterest: Geometry, minScale: Double = 0.0, maxScale: Double = 0.0): Result<GenerateOfflineMapParameters>

Returns a Result of GenerateOfflineMapParameters created from the specified area of interest, min scale and max scale.


A Result of GenerateOfflineMapParameters. The supported geometry types for the area of interest are Envelope and Polygon. The area of interest must have a spatial reference. Where a Polygon is supplied, features and tiles will be filtered according to the polygon geometry, which can help reduce the size of the resulting offline map. Note that the filtered set of tiles may vary, depending on the underlying service. The returned GenerateOfflineMapParameters has its itemInfo property initialized from the offline map task's portal item, if that is set. The ItemInfo's thumbnail will be copied from the portal item's thumbnail. If the online map contains an UtilityNetwork in the ArcGISMap.utilityNetworks, the GenerateGeodatabaseParameters.utilityNetworkSyncMode property is set to UtilityNetworkSyncMode.SyncSystemTables. This will include all the data layers and tables in the feature service in the GenerateGeodatabaseParameters.layerOptions. The feature data of each layer or table is filtered by an area of interest if they are already part of the map, or by GenerateLayerQueryOption.None if they are not. This allows the UtilityNetwork to query associations offline. To also enable tracing offline, you may use the result of OfflineMapTask.createGenerateOfflineMapParameterOverrides(GenerateOfflineMapParameters) to explicitly set GenerateGeodatabaseParameters.utilityNetworkSyncMode to UtilityNetworkSyncMode.SyncSystemAndTopologyTables. Alternatively, you may set GenerateGeodatabaseParameters.utilityNetworkSyncMode to UtilityNetworkSyncMode.None or clear ArcGISMap.utilityNetworks before calling this method to opt-out of the necessary and automatic inclusion of data or system layers that permit an UtilityNetwork to function offline. The default parameters will be populated using the values in the online map's OfflineSettings (if present).