TileDisplay.instantaneous constructor

const TileDisplay.instantaneous({
  1. 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.

If you wish to show a transparent map without these restrictions you can simply wrap the entire TileLayer in an Opacity widget.

Implementation

const factory TileDisplay.instantaneous({
  double opacity,
}) = InstantaneousTileDisplay._;