ArcGIS Pro 2.8 API Reference Guide
GetExportVectorTileCacheScales Method

ArcGIS.Desktop.Mapping.Offline Namespace > GenerateOfflineMap Class : GetExportVectorTileCacheScales Method
The map containing the vector tile service(s)
The extent controls the range of scales. A larger extent will usually result in a greater number of scale ranges than a smaller extent.
Get the list of scales to use for determining the level of detail, LOD, to use when exporting a vector tile cache. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public List<double> GetExportVectorTileCacheScales( 
   Map map,
   Envelope extent
)
Public Function GetExportVectorTileCacheScales( _
   ByVal map As Map, _
   ByVal extent As Envelope _
) As List(Of Double)

Parameters

map
The map containing the vector tile service(s)
extent
The extent controls the range of scales. A larger extent will usually result in a greater number of scale ranges than a smaller extent.

Return Value

A list of scales or an empty list if there are no exportable vector tile caches
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Map cannot be null
Extent cannot be null or empty
Map and extent spatial references must be equal
Remarks
If there are multiple vector tile services present in the TOC then the returned list of scales is derived from a consolidation of all LODs for the vector tile services (within the specified extent).
The extent parameter should be the same extent that is used with the ExportTileCacheParams.Extent when exporting the vector tile cache.
The extent spatial reference must match the spatial reference of the map or an exception will be thrown.
If the map has no exportable vector tile services then an empty list is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

GenerateOfflineMap Class
GenerateOfflineMap Members