Skip to content

Commit

Permalink
update OSM URL (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramp authored and tlserver committed Sep 27, 2023
1 parent a7493e4 commit 793a508
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 31 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions example/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
Expand Down
3 changes: 1 addition & 2 deletions example/lib/page/animation_debugger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ class _AnimationDebuggerState extends State<AnimationDebugger> {
],
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,
Expand Down
4 changes: 1 addition & 3 deletions example/lib/page/custom_stream_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ class _CustomStreamExampleState extends State<CustomStreamExample> {
// 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,
Expand Down
3 changes: 1 addition & 2 deletions example/lib/page/customize_marker_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions example/lib/page/default_stream_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ class _DefaultStreamExampleState extends State<DefaultStreamExample> {
),
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,
Expand Down
3 changes: 1 addition & 2 deletions example/lib/page/follow_fab_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class _FollowFabExampleState extends State<FollowFabExample> {
// 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,
Expand Down
3 changes: 1 addition & 2 deletions example/lib/page/geolocator_settings_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions example/lib/page/indicators_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions example/lib/page/minimum_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions example/lib/page/navigation_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ class _NavigationExampleState extends State<NavigationExample> {
// 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,
Expand Down
4 changes: 1 addition & 3 deletions example/lib/page/no_stream_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ class _NoStreamExampleState extends State<NoStreamExample> {
// 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,
Expand Down
3 changes: 1 addition & 2 deletions example/lib/page/selectable_distance_filter_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions example/lib/page/stream_debugger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ class _StreamDebuggerState extends State<StreamDebugger> {
],
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,
Expand Down

0 comments on commit 793a508

Please sign in to comment.