Skip to content

Commit 8497204

Browse files
authored
Discard changes to lib/src/layer/tile_layer/tile_layer.dart
1 parent 35d0607 commit 8497204

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/src/layer/tile_layer/tile_layer.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,17 +362,20 @@ class _TileLayerState extends State<TileLayer> with TickerProviderStateMixin {
362362
false && (kReleaseMode || kProfileMode) && !_unblockOpenStreetMapUrl;
363363
void _warnOpenStreetMapUrl() {
364364
if (!_isOpenStreetMapUrl || !kDebugMode || _unblockOpenStreetMapUrl) return;
365-
Logger(printer: PrettyPrinter(methodCount: 0)).w(
365+
Logger(printer: PrettyPrinter(methodCount: 0)).e(
366366
'''\x1B[1m\x1B[3mflutter_map\x1B[0m
367367
flutter_map wants to help keep map data available for everyone.
368368
We use the public OpenStreetMap tile servers in our code examples & demo app,
369369
but they are NOT free to use by everyone.
370+
In an upcoming non-major release, requests to 'tile.openstreetmap.org' or
371+
'tile.osm.org' will be blocked by default in release mode.
370372
Please review https://operations.osmfoundation.org/policies/tiles/ to see if
371373
your project is compliant with their Tile Usage Policy.
372374
For more information, see https://docs.fleaflet.dev/tile-servers/using-openstreetmap-direct.
373375
It describes in additional detail why we feel it is important to do this, how
374-
you can disable this warning, the timeframes for this new policy, and how we're
375-
working to reduce requests without any extra work from you.''',
376+
you can unblock the tile servers if your use-case is acceptable, the timeframes
377+
for this new policy, and how we're working to reduce requests without any extra
378+
work from you.''',
376379
);
377380
}
378381

0 commit comments

Comments
 (0)