TileDisplay class sealed
Defines how the tile should get displayed on the map.
- Annotations
Constructors
- TileDisplay.fadeIn({Duration duration, double startOpacity, double reloadStartOpacity})
-
Fade in the tile when it is loaded. Not that opacity is not supported
when fading is enabled. This is because underlying tiles are kept when
fading in a new tile until it is loaded and with a partially transparent
tile they are both visible during fading which causes flickering.
constfactory
- TileDisplay.instantaneous({double opacity})
-
Instantly display tiles once they are loaded without a fade animation.
Sets the opacity of tile images to the given value (0.0 - 1.0), default
1.0. Note that this opacity setting is applied at the tile level which
means that overlapping tiles will be simultaneously visible. This can
happen when changing zoom as tiles from the previous zoom level will
not be cleared until all of the tiles at the new zoom level have
finished loading. For this reason this opacity setting is only
recommended when the displayed map will remain at the same zoom level
or will not move gradually between zoom levels at the same position.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
T> ({T? instantaneous(InstantaneousTileDisplay instantaneous)?, T? fadeIn(FadeInTileDisplay fadeIn)?}) → T? -
Output a value of type
T
dependent on this and its type
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited