Skip to content

Commit 0a08527

Browse files
authored
Fixed bug where null urlTemplate caused exception in TileLayer construction (#1681)
1 parent 6d93e9d commit 0a08527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/layer/tile_layer/tile_layer.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class TileLayer extends StatefulWidget {
306306
}
307307
if (kDebugMode &&
308308
retinaMode == null &&
309-
wmsOptions == null &&
309+
urlTemplate != null &&
310310
urlTemplate!.contains('{r}')) {
311311
Logger(printer: PrettyPrinter(methodCount: 0)).w(
312312
'\x1B[1m\x1B[3mflutter_map\x1B[0m\nThe URL template includes a retina '

0 commit comments

Comments
 (0)