From 793a5088dc928375d6f09718aea392055aa33ff4 Mon Sep 17 00:00:00 2001 From: Andrew Brampton Date: Tue, 26 Sep 2023 11:15:38 -0700 Subject: [PATCH] update OSM URL (#85) --- README.md | 3 +-- example/example.md | 3 +-- example/lib/page/animation_debugger.dart | 3 +-- example/lib/page/custom_stream_example.dart | 4 +--- example/lib/page/customize_marker_example.dart | 3 +-- example/lib/page/default_stream_example.dart | 4 +--- example/lib/page/follow_fab_example.dart | 3 +-- example/lib/page/geolocator_settings_example.dart | 3 +-- example/lib/page/indicators_example.dart | 3 +-- example/lib/page/minimum_example.dart | 3 +-- example/lib/page/navigation_example.dart | 3 +-- example/lib/page/no_stream_example.dart | 4 +--- example/lib/page/selectable_distance_filter_example.dart | 3 +-- example/lib/page/stream_debugger.dart | 3 +-- 14 files changed, 14 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 7cb15b5..593f0ef 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,7 @@ Widget build(BuildContext context) { return FlutterMap( children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', maxZoom: 19, ), CurrentLocationLayer(), // <-- add layer here diff --git a/example/example.md b/example/example.md index 63cea3b..0160fd1 100644 --- a/example/example.md +++ b/example/example.md @@ -24,8 +24,7 @@ class MinimumExample extends StatelessWidget { children: [ TileLayerWidget( options: TileLayerOptions( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', maxZoom: 19, ), ), diff --git a/example/lib/page/animation_debugger.dart b/example/lib/page/animation_debugger.dart index 85f5eeb..c008769 100644 --- a/example/lib/page/animation_debugger.dart +++ b/example/lib/page/animation_debugger.dart @@ -82,8 +82,7 @@ class _AnimationDebuggerState extends State { ], children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/custom_stream_example.dart b/example/lib/page/custom_stream_example.dart index 506696a..35d7f92 100644 --- a/example/lib/page/custom_stream_example.dart +++ b/example/lib/page/custom_stream_example.dart @@ -66,9 +66,7 @@ class _CustomStreamExampleState extends State { // ignore: sort_child_properties_last children: [ TileLayer( - urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/customize_marker_example.dart b/example/lib/page/customize_marker_example.dart index 35b62c5..0bbd30e 100644 --- a/example/lib/page/customize_marker_example.dart +++ b/example/lib/page/customize_marker_example.dart @@ -19,8 +19,7 @@ class CustomizeMarkerExample extends StatelessWidget { ), children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/default_stream_example.dart b/example/lib/page/default_stream_example.dart index cbce065..1f98101 100644 --- a/example/lib/page/default_stream_example.dart +++ b/example/lib/page/default_stream_example.dart @@ -70,9 +70,7 @@ class _DefaultStreamExampleState extends State { ), children: [ TileLayer( - urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/follow_fab_example.dart b/example/lib/page/follow_fab_example.dart index e278a6d..b05e40e 100644 --- a/example/lib/page/follow_fab_example.dart +++ b/example/lib/page/follow_fab_example.dart @@ -51,8 +51,7 @@ class _FollowFabExampleState extends State { // ignore: sort_child_properties_last children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/geolocator_settings_example.dart b/example/lib/page/geolocator_settings_example.dart index 33bb2e6..b1170ce 100644 --- a/example/lib/page/geolocator_settings_example.dart +++ b/example/lib/page/geolocator_settings_example.dart @@ -20,8 +20,7 @@ class GeolocatorSettingsExample extends StatelessWidget { ), children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/indicators_example.dart b/example/lib/page/indicators_example.dart index b264e98..6abbedc 100644 --- a/example/lib/page/indicators_example.dart +++ b/example/lib/page/indicators_example.dart @@ -38,8 +38,7 @@ class IndicatorsExample extends StatelessWidget { ), children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/minimum_example.dart b/example/lib/page/minimum_example.dart index 920427c..59a2e30 100644 --- a/example/lib/page/minimum_example.dart +++ b/example/lib/page/minimum_example.dart @@ -19,8 +19,7 @@ class MinimumExample extends StatelessWidget { ), children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/navigation_example.dart b/example/lib/page/navigation_example.dart index e53f3ba..d8aa4cf 100644 --- a/example/lib/page/navigation_example.dart +++ b/example/lib/page/navigation_example.dart @@ -56,8 +56,7 @@ class _NavigationExampleState extends State { // ignore: sort_child_properties_last children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/no_stream_example.dart b/example/lib/page/no_stream_example.dart index 2fb1e13..882eb1f 100644 --- a/example/lib/page/no_stream_example.dart +++ b/example/lib/page/no_stream_example.dart @@ -43,9 +43,7 @@ class _NoStreamExampleState extends State { // ignore: sort_child_properties_last children: [ TileLayer( - urlTemplate: - 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/selectable_distance_filter_example.dart b/example/lib/page/selectable_distance_filter_example.dart index f7573bd..f6ff9dc 100644 --- a/example/lib/page/selectable_distance_filter_example.dart +++ b/example/lib/page/selectable_distance_filter_example.dart @@ -49,8 +49,7 @@ class _SelectableDistanceFilterExampleState ), children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19, diff --git a/example/lib/page/stream_debugger.dart b/example/lib/page/stream_debugger.dart index f950244..f92e0ec 100644 --- a/example/lib/page/stream_debugger.dart +++ b/example/lib/page/stream_debugger.dart @@ -90,8 +90,7 @@ class _StreamDebuggerState extends State { ], children: [ TileLayer( - urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', - subdomains: const ['a', 'b', 'c'], + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', userAgentPackageName: 'net.tlserver6y.flutter_map_location_marker.example', maxZoom: 19,