MapDetails class abstract Maps & 3D Scene

Map Details class

Provides a compact set of static utilities for querying map metadata and content:

  • check local coverage for points, regions or entire countries and determine offline/online availability;
  • look up country information (names, ISO codes, bounding boxes), language codes and flag assets;
  • compute astronomical times for a location and check whether it is night;
  • enumerate map providers and obtain provider details and copyright statements;
  • inspect map versions and release information;
  • query extended feature capabilities and a full list of country data.

Constructors

MapDetails.new()

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>
Get all countries data.
no setter
latestOnlineMapVersion Version
Get latest online map version.
no setter
mapVersion Version
Get the map version.
no setter

Static Methods

getCountryBoundingRectangle(String code) RectangleGeographicArea
Get the country bounding rectangle for the isoCode.
getCountryCode(Coordinates coords) String
Get the ISO 3166-1 alpha-3 country code for the specified WGS.
getCountryCodeByIndex(int index) String
Get the ISO 3166-1 alpha-3 country code for the specified index.
getCountryData(int id) CountryData?
Get country data for the specified country ID.
getCountryDataCount() int
Get country data count.
getCountryFlag({required String countryCode, Size? size, ImageFileFormat? format}) Uint8List?
Get the country flag for the isoCode.
getCountryFlagByIndex({required int index, Size? size, ImageFileFormat? format}) Uint8List?
Get the country flag for the specified index.
getCountryFlagImg(String countryCode) Img?
Get the country flag for the specified country.
getCountryFlagImgByIndex({required int index}) Img?
Get the country flag for the specified index.
getCountryMapCoverage(String code) MapCoverage
Get the map coverage for the country specified by ISO 3166-1 alpha-3 country code.
getCountryName(Coordinates coords) String
Get the country name for the specified coordinates (WGS).
getCountryNameByIndex(int index) String
Get the country name for the specified index.
getCountryNameByISO(String code) String
Get the country name for the specified ISO code.
getLanguageCode(Coordinates coords) List<String>
Get the language codes for the specified coordinates.
getLanguageCodeByIndex(int index) List<String>
Get the language codes for the specified index.
getMapCoverage(List<Coordinates> coords) MapCoverage
Get the map coverage for the region specified by WGS84 coordinates.
getMapExtendedCapabilities() Set<MapExtendedCapability>
Get map extended capabilities.
getMapProviderIds() List<int>
Get the map provider IDs list.
getMapReleaseInfo() DateTime
Get map release date in UTC.
getPointMapCoverage(Coordinates coords) MapCoverage
Get the map coverage for the region specified by WGS84 coordinate.
getProviderName(MapProviderId id) String
Get the name of the specified provider.
getProviderSentence(MapProviderId id) String
Get the copyright statement for the specified provider.
getSunriseAndSunset(Coordinates coords, DateTime time) → (DateTime, DateTime)
Get the sunrise & sunset for the specified reference date and WGS position.
isNight(Coordinates coords, DateTime time) bool
Check if it is night at the specified coordinates and time.