Click or drag to resize

OfflineMapTaskCreateDefaultGenerateOfflineMapParametersAsync Method (Geometry, Double, Double)

Namespace:  Esri.ArcGISRuntime.Tasks.Offline
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public Task<GenerateOfflineMapParameters> CreateDefaultGenerateOfflineMapParametersAsync(
	Geometry areaOfInterest,
	double minScale,
	double maxScale
)

Parameters

areaOfInterest
Type: Esri.ArcGISRuntime.GeometryGeometry
The region of the online map that is to be taken offline. Sets the property AreaOfInterest.
minScale
Type: SystemDouble
The minimum scale for the offline tile caches. Use 0 for all far out levels. See the property MinScale.
maxScale
Type: SystemDouble
The maximum scale for the offline tile caches. Use 0 for all closer in detailed levels. Sets the property MaxScale.

Return Value

Type: TaskGenerateOfflineMapParameters
A task that represents the asynchronous creation of default generate offline map parameters. The value of the task result is a GenerateOfflineMapParameters object.
Remarks
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 area of interest must have a spatial reference. 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.
See Also