diff --git a/example/lib/pages/animated_map_controller.dart b/example/lib/pages/animated_map_controller.dart index 74679c821..96a43cfec 100644 --- a/example/lib/pages/animated_map_controller.dart +++ b/example/lib/pages/animated_map_controller.dart @@ -182,7 +182,7 @@ class AnimatedMapControllerPageState extends State children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/circle.dart b/example/lib/pages/circle.dart index b6c09c080..0c3cba6da 100644 --- a/example/lib/pages/circle.dart +++ b/example/lib/pages/circle.dart @@ -40,7 +40,7 @@ class CirclePage extends StatelessWidget { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/home.dart b/example/lib/pages/home.dart index 54b526b97..082d232fa 100644 --- a/example/lib/pages/home.dart +++ b/example/lib/pages/home.dart @@ -66,7 +66,7 @@ class HomePage extends StatelessWidget { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/interactive_test_page.dart b/example/lib/pages/interactive_test_page.dart index db566a894..2a66b950f 100644 --- a/example/lib/pages/interactive_test_page.dart +++ b/example/lib/pages/interactive_test_page.dart @@ -158,7 +158,7 @@ class _InteractiveTestPageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/latlng_to_screen_point.dart b/example/lib/pages/latlng_to_screen_point.dart index 6988c2b75..3b24d0a87 100644 --- a/example/lib/pages/latlng_to_screen_point.dart +++ b/example/lib/pages/latlng_to_screen_point.dart @@ -59,7 +59,7 @@ class _LatLngScreenPointTestPageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/live_location.dart b/example/lib/pages/live_location.dart index 36fddd722..d81904dab 100644 --- a/example/lib/pages/live_location.dart +++ b/example/lib/pages/live_location.dart @@ -142,7 +142,7 @@ class _LiveLocationPageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/many_markers.dart b/example/lib/pages/many_markers.dart index 0a18d4c89..ee22701ed 100644 --- a/example/lib/pages/many_markers.dart +++ b/example/lib/pages/many_markers.dart @@ -80,7 +80,7 @@ class _ManyMarkersPageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/map_controller.dart b/example/lib/pages/map_controller.dart index b32c434be..51faee91b 100644 --- a/example/lib/pages/map_controller.dart +++ b/example/lib/pages/map_controller.dart @@ -162,7 +162,7 @@ class MapControllerPageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/map_inside_listview.dart b/example/lib/pages/map_inside_listview.dart index d4eba274a..c8cdd4541 100644 --- a/example/lib/pages/map_inside_listview.dart +++ b/example/lib/pages/map_inside_listview.dart @@ -30,7 +30,7 @@ class MapInsideListViewPage extends StatelessWidget { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/marker_anchor.dart b/example/lib/pages/marker_anchor.dart index c4f60cec4..ca28d572f 100644 --- a/example/lib/pages/marker_anchor.dart +++ b/example/lib/pages/marker_anchor.dart @@ -115,7 +115,7 @@ class MarkerAnchorPageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/marker_rotate.dart b/example/lib/pages/marker_rotate.dart index b895ab012..ce753e14b 100644 --- a/example/lib/pages/marker_rotate.dart +++ b/example/lib/pages/marker_rotate.dart @@ -140,7 +140,7 @@ class MarkerRotatePageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/max_bounds.dart b/example/lib/pages/max_bounds.dart index b0a423774..b516ce705 100644 --- a/example/lib/pages/max_bounds.dart +++ b/example/lib/pages/max_bounds.dart @@ -34,7 +34,7 @@ class MaxBoundsPage extends StatelessWidget { TileLayer( maxZoom: 15, urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/moving_markers.dart b/example/lib/pages/moving_markers.dart index 6406d1709..e0b2a512e 100644 --- a/example/lib/pages/moving_markers.dart +++ b/example/lib/pages/moving_markers.dart @@ -61,7 +61,7 @@ class _MovingMarkersPageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/network_tile_provider.dart b/example/lib/pages/network_tile_provider.dart index f512637bd..48cd8ffc9 100644 --- a/example/lib/pages/network_tile_provider.dart +++ b/example/lib/pages/network_tile_provider.dart @@ -67,7 +67,7 @@ class NetworkTileProviderPage extends StatelessWidget { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], tileProvider: NetworkTileProvider(), userAgentPackageName: 'dev.fleaflet.flutter_map.example', diff --git a/example/lib/pages/on_tap.dart b/example/lib/pages/on_tap.dart index 8c0bb8849..52cb09f65 100644 --- a/example/lib/pages/on_tap.dart +++ b/example/lib/pages/on_tap.dart @@ -87,7 +87,7 @@ class OnTapPageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/overlay_image.dart b/example/lib/pages/overlay_image.dart index a90135dec..171c87fa9 100644 --- a/example/lib/pages/overlay_image.dart +++ b/example/lib/pages/overlay_image.dart @@ -49,7 +49,7 @@ class OverlayImagePage extends StatelessWidget { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/plugin_scalebar.dart b/example/lib/pages/plugin_scalebar.dart index 51de08e60..e68bff3e4 100644 --- a/example/lib/pages/plugin_scalebar.dart +++ b/example/lib/pages/plugin_scalebar.dart @@ -37,7 +37,7 @@ class PluginScaleBar extends StatelessWidget { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/plugin_zoombuttons.dart b/example/lib/pages/plugin_zoombuttons.dart index 9939e4c2d..4176f9b6d 100644 --- a/example/lib/pages/plugin_zoombuttons.dart +++ b/example/lib/pages/plugin_zoombuttons.dart @@ -36,7 +36,7 @@ class PluginZoomButtons extends StatelessWidget { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/point_to_latlng.dart b/example/lib/pages/point_to_latlng.dart index 10142578a..1eba3cf7d 100644 --- a/example/lib/pages/point_to_latlng.dart +++ b/example/lib/pages/point_to_latlng.dart @@ -68,7 +68,7 @@ class PointToLatlngPage extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/polygon.dart b/example/lib/pages/polygon.dart index 97ad5bfd7..a04b2d787 100644 --- a/example/lib/pages/polygon.dart +++ b/example/lib/pages/polygon.dart @@ -70,7 +70,7 @@ class PolygonPage extends StatelessWidget { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/polyline.dart b/example/lib/pages/polyline.dart index 6eda841ec..5d53564e5 100644 --- a/example/lib/pages/polyline.dart +++ b/example/lib/pages/polyline.dart @@ -83,7 +83,7 @@ class _PolylinePageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', diff --git a/example/lib/pages/reset_tile_layer.dart b/example/lib/pages/reset_tile_layer.dart index a8d76b048..a3af0e032 100644 --- a/example/lib/pages/reset_tile_layer.dart +++ b/example/lib/pages/reset_tile_layer.dart @@ -19,7 +19,7 @@ class ResetTileLayerPage extends StatefulWidget { class ResetTileLayerPageState extends State { StreamController resetController = StreamController.broadcast(); - String layer1 = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; + String layer1 = 'https://tile.openstreetmap.org/{z}/{x}/{y}.png'; String layer2 = 'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png'; bool layerToggle = true; diff --git a/example/lib/pages/stateful_markers.dart b/example/lib/pages/stateful_markers.dart index 5544f834c..f36147228 100644 --- a/example/lib/pages/stateful_markers.dart +++ b/example/lib/pages/stateful_markers.dart @@ -66,7 +66,7 @@ class _StatefulMarkersPageState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/pages/tile_builder_example.dart b/example/lib/pages/tile_builder_example.dart index 07c47bce9..05bb1548f 100644 --- a/example/lib/pages/tile_builder_example.dart +++ b/example/lib/pages/tile_builder_example.dart @@ -113,7 +113,7 @@ class _TileBuilderPageState extends State { ), children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', tileBuilder: tileBuilder, diff --git a/example/lib/pages/tile_loading_error_handle.dart b/example/lib/pages/tile_loading_error_handle.dart index 340eb77a7..8e95ac253 100644 --- a/example/lib/pages/tile_loading_error_handle.dart +++ b/example/lib/pages/tile_loading_error_handle.dart @@ -41,7 +41,7 @@ class _TileLoadingErrorHandleState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], // For example purposes. It is recommended to use // TileProvider with a caching and retry strategy, like diff --git a/example/lib/pages/widgets.dart b/example/lib/pages/widgets.dart index ad5bea8ad..f2c4c1e35 100644 --- a/example/lib/pages/widgets.dart +++ b/example/lib/pages/widgets.dart @@ -46,7 +46,7 @@ class WidgetsPage extends StatelessWidget { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/example/lib/test_app.dart b/example/lib/test_app.dart index 908645a94..8a9ffd939 100644 --- a/example/lib/test_app.dart +++ b/example/lib/test_app.dart @@ -35,7 +35,7 @@ class _TestAppState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c'], userAgentPackageName: 'dev.fleaflet.flutter_map.example', ), diff --git a/lib/src/core/util.dart b/lib/src/core/util.dart index 6def10ede..9a4824ed9 100644 --- a/lib/src/core/util.dart +++ b/lib/src/core/util.dart @@ -6,7 +6,7 @@ var _templateRe = RegExp(r'\{ *([\w_-]+) *\}'); /// Replaces the templating placeholders with the provided data map. /// -/// Example input: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png +/// Example input: https://tile.openstreetmap.org/{z}/{x}/{y}.png /// /// Throws an [Exception] if any placeholder remains unresolved. String template(String str, Map data) { diff --git a/test/flutter_map_test.dart b/test/flutter_map_test.dart index 6148ff3b6..1da838272 100644 --- a/test/flutter_map_test.dart +++ b/test/flutter_map_test.dart @@ -112,7 +112,7 @@ class _TestAppState extends State { children: [ TileLayer( urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', subdomains: ['a', 'b', 'c']), MarkerLayer(markers: _markers), ],