maxSquareKm property
int
get
maxSquareKm
Returns the maximum area size (in square kilometers) allowed for downloads.
If a requested download area exceeds this value, startDownload will fail with an appropriate GemError.
Returns
- (
int) Maximum permitted area in square kilometers for a single download request.
See also:
- maxSquareKm — Set the maximum area size allowed for downloads.
Implementation
int get maxSquareKm {
final OperationResult resultString = objectMethod(
pointerId,
'MapDownloaderService',
'getMaxSquareKm',
);
return resultString['result'] as int;
}
set
maxSquareKm
(int value)
Sets the maximum area size (in square kilometers) allowed for downloads.
Use this setter to limit how large a requested download area can be. If a subsequent startDownload request exceeds this value it will not start and the completion callback will receive GemError.outOfRange.
Parameters
value: (int) The maximum area size in square kilometers.
Implementation
set maxSquareKm(int value) {
objectMethod(
pointerId,
'MapDownloaderService',
'setMaxSquareKm',
args: value,
);
}