USGSTileLayer static method
Used to load and display tile layers from USGS servers.
Example:
U.USGSTileLayer(
type: USGSType.Topo,
options: TileLayerOptions(
opacity: 0.9,
),
)
@param: type
enum to define the type of USGS Map tiles to load.
Available values: USGSType.Topo USGSType.Imagery USGSType.ImageryTopo
@param: options
Parameter to override the default value of TileLayerOptions Default value: TileLayerOptions()
Implementation
// ignore: non_constant_identifier_names
static L.TileLayer USGSTileLayer({
required USGSType type,
L.TileLayerOptions? options,
}) {
return L.TileLayer(
options: usgs(
type: type,
options: options ?? L.TileLayerOptions(),
),
);
}