getCountryMapCoverage static method

MapCoverage getCountryMapCoverage(
  1. String code
)

Returns the map coverage status for a country identified by its ISO code.

The check is performed locally and is fast. Use the returned value to determine whether offline tiles exist for the whole country.

Parameters

  • code: (String) ISO 3166-1 alpha-3 country code (for example, USA).

Returns

  • (MapCoverage) Coverage status for the specified country.

Implementation

static MapCoverage getCountryMapCoverage(final String code) {
  final OperationResult resultString = staticMethod(
    'MapDetails',
    'getCountryMapCoverage',
    args: code,
  );

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