MapCachingProvider class abstract interface

Provides tile caching facilities to TileProviders

Some caching plugins may choose instead to provide a dedicated TileProvider, in which case the flutter_map-provided caching facilities are irrelevant.

The CachedMapTileMetadata object is used to store metadata alongside cached tiles. Its intended purpose is primarily for caching based on HTTP headers - however, this is not a requirement.

Properties

hashCode int
The hash code for this object.
no setterinherited
isSupported bool
Whether this caching provider is "currently supported": whether the tile provider should attempt to use it, or fallback to a non-caching alternative
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getTile(String url) Future<CachedMapTile?>
Retrieve a tile from the cache, if it exists
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putTile({required String url, required CachedMapTileMetadata metadata, Uint8List? bytes}) Future<void>
Add or update a tile in the cache
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited