FMTCTileProvider class
FMTC's custom TileProvider
for use in a TileLayer
Create from the store directory chain, eg. StoreDirectory.getTileProvider.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
headers
↔ Map<
String, String> -
Custom headers that may be sent with each tile request, if the specific implementation supports it
getter/setter pairinherited
- httpClient → BaseClient
-
BaseClient
(such as a HttpClient) used to make all network requestsfinal - 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 TileCoordinates coords, required TileLayer options}) → bool - Check whether a specified tile is cached in the current store synchronously
-
checkTileCachedAsync(
{required TileCoordinates coords, required TileLayer options}) → 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(
TileCoordinates 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(
TileCoordinates coordinates, TileLayer options) → String -
Get a subdomain value for a tile, based on it's coordinates and the current
TileLayerOptions
inherited -
getTileFallbackUrl(
TileCoordinates coordinates, TileLayer options) → String? -
Generates a valid URL for the
fallbackUrl
.inherited -
getTileUrl(
TileCoordinates coordinates, 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.
override