FMTCTileProvider constructor
FMTCTileProvider({
- required StoreDirectory storeDirectory,
- required FMTCTileProviderSettings? settings,
- Map<
String, String> headers = const {}, - HttpClient? httpClient,
'flutter_map_tile_caching's custom TileProvider
for use in a TileLayer
Usually created from the store directory chain, eg. StoreDirectory.getTileProvider.
This contains the logic for the tile provider, such as browse caching and using bulk downloaded tiles.
Implementation
FMTCTileProvider({
required this.storeDirectory,
required FMTCTileProviderSettings? settings,
super.headers,
HttpClient? httpClient,
}) : settings =
settings ?? FMTC.instance.settings.defaultTileProviderSettings,
httpClient = httpClient ?? HttpClient()
..userAgent = null;