Method CreateDefaultGenerateOfflineMapParametersAsync
CreateDefaultGenerateOfflineMapParametersAsync(Geometry)
Returns a System.Threading.Tasks.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).
If the map being taken offline contains a
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |
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. |
System.Double | minScale | The minimum scale for the offline tile caches. Use 0 for all far out levels. See the property MinScale. |
System.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).
If the map being taken offline contains a
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.4 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.4 - 200.6 |
Xamarin.Android | 100.4 - 100.15 |
Xamarin.iOS | 100.4 - 100.15 |
UWP | 100.4 - 200.6 |