FMTCTileProvider class
'flutter_map_tile_caching's custom TileProvider
for use in a TileLayer
Constructors
-
FMTCTileProvider({required StoreDirectory storeDirectory, required FMTCTileProviderSettings? settings, Map<
String, String> headers = const {}, HttpClient? httpClient}) -
'flutter_map_tile_caching's custom
TileProvider
for use in aTileLayer
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, String> -
Custom headers that may be sent with each tile request, if the specific implementation supports it
getter/setter pairinherited
- httpClient → HttpClient
-
Used internally for browsing-caused tile requests
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → FMTCTileProviderSettings
-
The tile provider settings to use
final
- storeDirectory → StoreDirectory
-
The store directory attached to this provider
final
Methods
-
checkTileCached(
{required Coords< num> coords, required TileLayer options, String? customURL}) → bool - Check whether a specified tile is cached in the current store synchronously
-
checkTileCachedAsync(
{required Coords< num> coords, required TileLayer options, String? customURL}) → Future<bool> - Check whether a specified tile is cached in the current store asynchronously
-
dispose(
) → void - Closes the open HttpClient - this will make the provider unable to perform network requests
-
getImage(
Coords< num> coords, TileLayer options) → ImageProvider<Object> - Get a browsed tile as an image, paint it on the map and save it's bytes to cache for later (dependent on the CacheBehavior)
-
getSubdomain(
Coords< num> coords, TileLayer options) → String -
Get a subdomain value for a tile, based on it's coordinates and the current
TileLayerOptions
inherited -
getTileFallbackUrl(
Coords< num> coords, TileLayer options) → String? -
Generates a valid URL for the
fallbackUrl
.inherited -
getTileUrl(
Coords< num> coords, TileLayer options) → String -
Generate a valid URL for a tile, based on it's coordinates and the current
TileLayerOptions
inherited -
invertY(
int y, int z) → int -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited