GeoportailFranceTileLayer static method
TileLayer
GeoportailFranceTileLayer({
- required GeoportailFranceType type,
- TileLayerOptions? options,
- required String apikey,
Used to load and display tile layers from Geoportail France Map servers.
Example:
U.GeoportailFranceTileLayer(
type: GeoportailFranceType.Plan,
options: TileLayerOptions(
opacity: 0.9,
),
)
@param: type
enum to define the type of Geoportail France Map tiles to load.
Available values: GeoportailFranceType.Plan GeoportailFranceType.Parcels GeoportailFranceType.Orthos
@param: options
Parameter to override the default value of TileLayerOptions Default value: TileLayerOptions()
Implementation
// ignore: non_constant_identifier_names
static L.TileLayer GeoportailFranceTileLayer({
required GeoportailFranceType type,
L.TileLayerOptions? options,
required String apikey,
}) {
return L.TileLayer(
options: geoportail(
type: type,
apikey: apikey,
options: options ?? L.TileLayerOptions(),
),
);
}