public Task<ExportTileCacheParameters> CreateDefaultExportTileCacheParametersAsync( Geometry areaOfInterest, double minScale, double maxScale )
Public Function CreateDefaultExportTileCacheParametersAsync ( areaOfInterest As Geometry, minScale As Double, maxScale As Double ) As Task(Of ExportTileCacheParameters)
The value of minScale must be larger than the value of maxScale, unless they are 0.
A minScale value of 0 will result in this method choosing the service's smallest level number, typically level 0.
Similarly a maxScale of 0 will result in the service's largest level number being used, representing the closest in view being visible when taken offline. If minScale is between the scales of tile levels the previous smallest level is used.
Similarly if maxScale is between tile levels the next level is taken to ensure it is displayed. For example a simple service has 4 levels: level 0 scale 2000000; level 1 scale 1000000; level 2 scale 500000; level 3 scale 250000.
A minScale of 0 and maxScale of 0 selects all levels 0,1,2,3.
A minScale of 750000 (between levels 1 and 2) and a maxScale of 25000 (at level 3) will select levels 1,2,3.
A minScale of 0 and a maxScale 750000 (between 1 and 2) will select levels 0,1,2.
A minScale of 1000000 and a maxScale of 0 will select all levels from 1 onwards 1,2,3.
Be careful when combining a large extent or a wide range of scales, this can result in the export failing due to exceeding the services maximum export tile count.