getMapCoverage static method
- List<
Coordinates> coords
Get the map coverage for the region specified by WGS84 coordinates.
This function checks the map coverage status using only the information available on the device. No server connection is performed. This check is performed quickly.
Parameters
- IN coords The list of coordinates
Returns
- MapCoverage.coverageOffline - Entire map is available on the device.
- MapCoverage.coverageOnlineNoData - Map is available but not all tiles are on the device.
- MapCoverage.coverageOnlineTile - Data covered by the online cache available on the device. No connection required.
- MapCoverage.coverageUnknown - No map coverage available on device and cannot determine if there exists content on the server.
Throws
- An exception if it fails.
Implementation
static MapCoverage getMapCoverage(final List<Coordinates> coords) {
final OperationResult resultString = objectMethod(
0,
'MapDetails',
'getMapCoverage',
args: coords,
);
return MapCoverageExtension.fromId(resultString['result']);
}