MapTilerTileLayer static method
TileLayer
MapTilerTileLayer({
- MapTilerType type = MapTilerType.Default,
- TileLayerOptions? options,
- required String apikey,
Used to load and display tile layers from MapTiler servers.
Example:
U.MapTilerTileLayer(
type: JawgType.Default,
options: TileLayerOptions(
opacity: 0.9,
),
)
@param: type
enum to define the type of MapTiler tiles to load.
Available values: MapTilerType.Default MapTilerType.Streets MapTilerType.Basic MapTilerType.Bright MapTilerType.Pastel MapTilerType.Positron MapTilerType.Hybrid MapTilerType.Toner MapTilerType.Topo MapTilerType.Voyager
@param: options
Parameter to override the default value of TileLayerOptions Default value: TileLayerOptions()
Implementation
// ignore: non_constant_identifier_names
static L.TileLayer MapTilerTileLayer({
MapTilerType type = MapTilerType.Default,
L.TileLayerOptions? options,
required String apikey,
}) {
return L.TileLayer(
options: maptiler(
type: type,
apikey: apikey,
options: options ?? L.TileLayerOptions(),
),
);
}