Show / Hide Table of Contents

Method CreateDefaultGenerateOfflineMapParametersAsync

CreateDefaultGenerateOfflineMapParametersAsync(Geometry)

Returns a Task of GenerateOfflineMapParameters created from the specified area of interest.

Declaration
public Task<GenerateOfflineMapParameters> CreateDefaultGenerateOfflineMapParametersAsync(Geometry areaOfInterest)
Parameters
Type Name Description
Geometry areaOfInterest

The region of the online map that is to be taken offline.

Returns
Type Description
System.Threading.Tasks.Task<GenerateOfflineMapParameters>

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 returned parameters min scale and max scale are zero so data will be taken at the full range of scales the services support.

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.

The default parameters will be populated using the values in the online map's OfflineSettings (if present).

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.1 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 100.15

CreateDefaultGenerateOfflineMapParametersAsync(Geometry, Double, Double)

Returns a System.Threading.Tasks.Task<TResult> created from the specified area of interest, min scale and max scale.

Declaration
public Task<GenerateOfflineMapParameters> CreateDefaultGenerateOfflineMapParametersAsync(Geometry areaOfInterest, double minScale, double maxScale)
Parameters
Type Name Description
Geometry areaOfInterest

The region of the online map that is to be taken offline. Sets the property AreaOfInterest.

Double minScale

The minimum scale for the offline tile caches. Use 0 for all far out levels. See the property MinScale.

Double maxScale

The maximum scale for the offline tile caches. Use 0 for all closer in detailed levels. Sets the property MaxScale.

Returns
Type Description
System.Threading.Tasks.Task<GenerateOfflineMapParameters>

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 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.

The default parameters will be populated using the values in the online map's OfflineSettings (if present).

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.4 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.4 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.4 - 100.15
Xamarin.iOS100.4 - 100.15
UWP100.4 - 100.15
In This Article
Back to top Copyright © 2022 Esri.