getMapCoverage static method

MapCoverage getMapCoverage(
  1. List<Coordinates> coords
)

Returns the map coverage status for a region defined by WGS84 coordinates.

This method performs a local check using only device data and does not perform any network requests. It is suitable for quickly determining whether map tiles for a region are available offline.

Parameters

  • coords: (List<Coordinates>) List of WGS84 coordinates that define the region of interest.

Returns

  • (MapCoverage) Enum value describing the coverage status for the supplied region.

Implementation

static MapCoverage getMapCoverage(final List<Coordinates> coords) {
  final OperationResult resultString = staticMethod(
    'MapDetails',
    'getMapCoverageList',
    args: coords,
  );

  return MapCoverageExtension.fromId(resultString['result']);
}