NASAGIBSTileLayer static method

TileLayer NASAGIBSTileLayer({
  1. required NASAGIBSType type,
  2. TileLayerOptions? options,
})

Used to load and display tile layers from NASA GIBS servers.

Example:

U.NASAGIBSTileLayer(
  type: NASAGIBSType.ModisTerraTrueColorCR,
  options: TileLayerOptions(
    opacity: 0.9,
  ),
)

@param: type

enum to define the type of NASA GIBS tiles to load.

Available values: NASAGIBSType.ModisTerraTrueColorCR NASAGIBSType.ModisTerraBands367CR NASAGIBSType.ViirsEarthAtNight2012 NASAGIBSType.ModisTerraLSTDay NASAGIBSType.ModisTerraSnowCover NASAGIBSType.ModisTerraAOD NASAGIBSType.ModisTerraChlorophyll

@param: options

Parameter to override the default value of TileLayerOptions Default value: TileLayerOptions()

Implementation

// ignore: non_constant_identifier_names
static L.TileLayer NASAGIBSTileLayer({
  required NASAGIBSType type,
  L.TileLayerOptions? options,
}) {
  return L.TileLayer(
    options: nasagibs(
      type: type,
      options: options ?? L.TileLayerOptions(),
    ),
  );
}