MapDetails class abstract Maps & 3D Scenes

Utilities for querying map metadata, coverage and country information.

The static MapDetails API provides read-only helpers to inspect local map coverage, obtain country names and flags, compute sunrise/sunset times, enumerate map providers, and fetch version/release information.

Also see:

  • CountryData - Compact country metadata including name, ISO code and flag.
  • ISOCodeConversions - Utilities for converting and inspecting ISO codes.
  • Language - Represents language metadata used by the SDK.

Constructors

MapDetails()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

allCountriesData → List<CountryData>
Returns a list with metadata for all countries known to the SDK.
no setter
countryDataCount → int
Returns the number of country entries available in the SDK.
no setter
latestOnlineMapVersion → Version
Returns the latest available online map version known to the SDK.
no setter
mapProviderIds → List<int>
Returns a list of available map provider IDs present on the device.
no setter
mapReleaseInfo → DateTime
Returns the map release date/time in UTC.
no setter
mapVersion → Version
Returns the currently installed map data version.
no setter

Static Methods

getCountryBoundingRectangle(String code) → RectangleGeographicArea
Returns the geographic bounding rectangle for a country code.
getCountryCode(Coordinates coords) → String
Returns the ISO 3166-1 alpha-3 country code for the supplied WGS84 coordinates.
getCountryCodeByIndex(int index) → String
Returns the ISO 3166-1 alpha-3 country code for an internal index.
getCountryData(int id) → CountryData?
Returns country metadata for the supplied country ID.
getCountryDataCount() → int
Returns the number of country entries available in the SDK.
getCountryFlag({required String countryCode, Size? size, ImageFileFormat? format}) → Uint8List?
Returns raw image bytes for the country flag by ISO 3166-1 alpha-3 code.
getCountryFlagByIndex({required int index, Size? size, ImageFileFormat? format}) → Uint8List?
Returns the country flag image bytes for the specified country index.
getCountryFlagImg(String countryCode) → Img?
Get the country flag image by ISO code as a Img.
getCountryFlagImgByIndex(int index) → Img?
Get the country flag image by index as a Img.
getCountryMapCoverage(String code) → MapCoverage
Returns the map coverage status for a country identified by its ISO code.
getCountryName(Coordinates coords) → String
Returns the display name of the country that contains the coordinates.
getCountryNameByIndex(int index) → String
Returns the country name associated with an internal country index.
getCountryNameByISO(String code) → String
Returns the country name for the supplied ISO 3166-1 alpha-3 code.
getLanguageCode(Coordinates coords) → List<String>
Returns language codes for the country that contains the coordinates.
getLanguageCodeByIndex(int index) → List<String>
Returns language codes for the country with the given index.
getMapCoverage(List<Coordinates> coords) → MapCoverage
Returns the map coverage status for a region defined by WGS84 coordinates.
getMapExtendedCapabilities() → Set<MapExtendedCapability>
Returns the set of extended map capabilities enabled for the current map data.
getMapProviderIds() → List<int>
Returns a list of available map provider IDs present on the device.
getMapReleaseInfo() → DateTime
Returns the map release date/time in UTC.
getPointMapCoverage(Coordinates coords) → MapCoverage
Returns the map coverage status for a single WGS84 coordinate.
getProviderName(MapProviderId id) → String
Returns the display name for a map provider.
getProviderSentence(MapProviderId id) → String
Returns the copyright or attribution sentence for a provider.
getSunriseAndSunset(Coordinates coords, DateTime time) → (DateTime, DateTime)
Returns the sunrise and sunset times (UTC) for the supplied position and reference date.
isNight(Coordinates coords, DateTime time) → bool
Returns whether it is night at the given coordinates and reference time.