CustomTileProvider class
A very basic TileProvider implementation, that can be extended to create your own provider
Using this method is not recommended any more, except for very simple custom TileProviders. Instead, visit the online documentation at https://docs.fleaflet.dev/plugins/making-a-plugin/creating-new-tile-providers.
- Inheritance
-
- Object
- TileProvider
- CustomTileProvider
Constructors
-
CustomTileProvider({required String customTileUrl(Coords<
num> coors, TileLayer options)})
Properties
-
customTileUrl
→ String Function(Coords<
num> coors, TileLayer options) -
final
- 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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Called when the
TileLayerWidget
is disposedinherited -
getImage(
Coords< num> coords, TileLayer options) → ImageProvider<Object> -
Retrieve a tile as an image, based on it's coordinates and the current
TileLayerOptions
override -
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
override -
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