FileTileBitmapCache class
A file cache for the bitmaps of a Tile
. The implementation can distinguish different sets of Tile
s depending on the renderkey.
This can be used to cache for example tiles used by day as well as tiles used by night.
- Inheritance
- Object
- TileBitmapCache
- FileTileBitmapCache
Constructors
- FileTileBitmapCache(String renderkey)
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- renderkey ↔ String
-
a unique key for the rendered bitmaps. The key should be dependent of the renderingTheme. In other words if the bitmaps should be
rendered differently (day/night for example or different mapfiles) there should be different rendering keys
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
addTileBitmap(
Tile tile, TileBitmap tileBitmap) → void -
Adds a bitmap to the cache
override
-
dispose(
) → void -
disposes the cache. It should not be used anymore after disposing.
override
-
getTileBitmapAsync(
Tile tile) → Future< TileBitmap> -
override
-
getTileBitmapSync(
Tile tile) → TileBitmap -
Returns the requested bitmap for the given
Tile
override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
purgeAll(
) → void -
Purges the whole cache. The cache can be used afterwards but will not return any items
override
-
purgeByBoundary(
BoundingBox boundingBox) → Future< void> -
Purges the cache whose
Tile
s intersects with the givenboundingBox
. Any bitmap which is fully or partially intersecting the givenboundingBox
will be purged.override -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited