NetworkTileProvider class
TileProvider that uses FMNetworkImageProvider
internally
This image provider automatically retries some failed requests up to 3 times.
Note that this provider may be slower than NetworkNoRetryTileProvider when fetching tiles due to internal reasons.
Note that the 'User-Agent' header and the RetryClient
cannot be changed, on the web platform.
- Inheritance
-
- Object
- TileProvider
- NetworkTileProvider
Constructors
-
NetworkTileProvider({Map<
String, String> ? headers, RetryClient? retryClient})
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
- retryClient ↔ RetryClient
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Called when the TileLayerWidget is disposed
inherited
-
getImage(
Coords< num> coords, TileLayerOptions options) → ImageProvider<Object> -
Retrieve a tile as an image, based on it's coordinates and the current TileLayerOptions
override
-
getSubdomain(
Coords< num> coords, TileLayerOptions options) → String -
Get a subdomain value for a tile, based on it's coordinates and the current TileLayerOptions
inherited
-
getTileUrl(
Coords< num> coords, TileLayerOptions 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