diff --git a/flutter_map/lib/src/layer/tile_layer.dart b/flutter_map/lib/src/layer/tile_layer.dart index fec802729..55ccc798e 100644 --- a/flutter_map/lib/src/layer/tile_layer.dart +++ b/flutter_map/lib/src/layer/tile_layer.dart @@ -18,6 +18,7 @@ class TileLayerOptions extends LayerOptions { final bool zoomReverse; final double zoomOffset; final List subdomains; + final Color backgroundColor; Map additionalOptions; TileLayerOptions({ @@ -28,6 +29,7 @@ class TileLayerOptions extends LayerOptions { this.zoomOffset = 0.0, this.additionalOptions = const {}, this.subdomains = const [], + this.backgroundColor = Colors.grey[300], }); } @@ -277,7 +279,7 @@ class _TileLayerState extends State { child: new Stack( children: tileWidgets, ), - color: Colors.grey[300], + color: this.options.backgroundColor, ); }