diff --git a/lib/layouts/home.dart b/lib/layouts/home.dart index a2b6ba1..0f1e37d 100644 --- a/lib/layouts/home.dart +++ b/lib/layouts/home.dart @@ -231,10 +231,12 @@ class _HomeLayoutState extends State with TickerProviderStateMixin { children: [ TileLayer( tileProvider: CancellableNetworkTileProvider(), - tileBuilder: Theme.of(context).brightness == Brightness.dark - ? (context, tileWidget, tile) => - darkModeTileBuilder(context, tileWidget, tile) - : null, + tileBuilder: + Theme.of(context).brightness == Brightness.dark && + _selectedMapLayer == MapLayer.streets + ? (context, tileWidget, tile) => + darkModeTileBuilder(context, tileWidget, tile) + : null, urlTemplate: _selectedMapLayer == MapLayer.streets ? 'https://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}' : 'https://{s}.google.com/vt/lyrs=y&x={x}&y={y}&z={z}',