TomTomTileLayer static method

TileLayer TomTomTileLayer({
  1. required TomTomType type,
  2. TileLayerOptions? options,
  3. required String apikey,
})

Used to load and display tile layers from TomTom Map servers.

Example:

U.TomTomTileLayer(
  type: TomTomType.Basic,
  options: TileLayerOptions(
    opacity: 0.9,
  ),
)

@param: type

enum to define the type of TomTom Map tiles to load.

Available values: TomTomType.Basic TomTomType.Hybrid TomTomType.Labels

@param: options

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

Implementation

// ignore: non_constant_identifier_names
static L.TileLayer TomTomTileLayer({
  required TomTomType type,
  L.TileLayerOptions? options,
  required String apikey,
}) {
  return L.TileLayer(
    options: tomtom(
      type: type,
      apikey: apikey,
      options: options ?? L.TileLayerOptions(),
    ),
  );
}