Skip to content

Commit

Permalink
Fixed bug where null urlTemplate caused exception in TileLayer
Browse files Browse the repository at this point in the history
…construction (#1681)
  • Loading branch information
JaffaKetchup authored Oct 7, 2023
1 parent 6d93e9d commit 0a08527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/layer/tile_layer/tile_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class TileLayer extends StatefulWidget {
}
if (kDebugMode &&
retinaMode == null &&
wmsOptions == null &&
urlTemplate != null &&
urlTemplate!.contains('{r}')) {
Logger(printer: PrettyPrinter(methodCount: 0)).w(
'\x1B[1m\x1B[3mflutter_map\x1B[0m\nThe URL template includes a retina '
Expand Down

0 comments on commit 0a08527

Please sign in to comment.