TileLayerOptions class

Describes the needed properties to create a tile-based layer. A tile is an image binded to a specific geographical position.

Inheritance

Constructors

TileLayerOptions({String urlTemplate, double tileSize = 256.0, double maxZoom = 18.0, bool zoomReverse = false, double zoomOffset = 0.0, Map<String, String> additionalOptions = const <String, String>{}, List<String> subdomains = const <String>[], int keepBuffer = 2, Color backgroundColor = const Color(0xFFE0E0E0), ImageProvider<Object> placeholderImage, TileProvider tileProvider = const CachedNetworkTileProvider(), bool tms = false, double opacity = 1.0, dynamic rebuild})

Properties

additionalOptions Map<String, String>
Static informations that should replace placeholders in the urlTemplate. Applying API keys is a good example on how to use this parameter. [...]
read / write
backgroundColor Color
Color shown behind the tiles.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
keepBuffer int
When panning the map, keep this many rows and columns of tiles before unloading them.
final
maxZoom double
The max zoom applicable. In most tile providers goes from 0 to 19.
final
opacity double
Opacity of the rendered tile
final
placeholderImage ImageProvider<Object>
Placeholder to show until tile images are fetched by the provider.
read / write
rebuild Stream<Null>
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subdomains List<String>
List of subdomains for the URL. [...]
final
tileProvider TileProvider
Provider to load the tiles. The default is CachedNetworkTileProvider, which loads tile images from network and caches them offline. [...]
final
tileSize double
Size for the tile. Default is 256
final
tms bool
If true, inverses Y axis numbering for tiles (turn this on for TMS services).
final
urlTemplate String
Defines the structure to create the URLs for the tiles. [...]
final
zoomOffset double
final
zoomReverse bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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