File tree Expand file tree Collapse file tree 2 files changed +8
-21
lines changed Expand file tree Collapse file tree 2 files changed +8
-21
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,7 @@ class _SelectGeolocationState extends State<SelectGeolocation> {
80
80
81
81
Widget _buildMapTileLayer () {
82
82
return TileLayer (
83
- urlTemplate: settings.language == 'ru_RU'
84
- ? 'https://tile2.maps.2gis.com/tiles?x={x}&y={y}&z={z}'
85
- : 'https://tile.openstreetmap.org/{z}/{x}/{y}.png' ,
83
+ urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png' ,
86
84
userAgentPackageName: 'com.darkmoonight.rain' ,
87
85
);
88
86
}
@@ -173,15 +171,10 @@ class _SelectGeolocationState extends State<SelectGeolocation> {
173
171
animationConfig: const ScaleRAWA (),
174
172
attributions: [
175
173
TextSourceAttribution (
176
- settings.language == 'ru_RU'
177
- ? '2GIS contributors'
178
- : 'OpenStreetMap contributors' ,
174
+ 'OpenStreetMap contributors' ,
179
175
onTap: () => weatherController
180
- .urlLauncher (settings
181
- .language ==
182
- 'ru_RU'
183
- ? 'https://law.2gis.ru/copyright'
184
- : 'https://openstreetmap.org/copyright' ),
176
+ .urlLauncher (
177
+ 'https://openstreetmap.org/copyright' ),
185
178
),
186
179
],
187
180
),
Original file line number Diff line number Diff line change @@ -178,9 +178,7 @@ class _MapWeatherState extends State<MapWeather> with TickerProviderStateMixin {
178
178
179
179
Widget _buildMapTileLayer (CacheStore cacheStore) {
180
180
return TileLayer (
181
- urlTemplate: settings.language == 'ru_RU'
182
- ? 'https://tile2.maps.2gis.com/tiles?x={x}&y={y}&z={z}'
183
- : 'https://tile.openstreetmap.org/{z}/{x}/{y}.png' ,
181
+ urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png' ,
184
182
userAgentPackageName: 'com.darkmoonight.rain' ,
185
183
tileProvider: CachedTileProvider (
186
184
store: cacheStore,
@@ -279,13 +277,9 @@ class _MapWeatherState extends State<MapWeather> with TickerProviderStateMixin {
279
277
alignment: AttributionAlignment .bottomLeft,
280
278
attributions: [
281
279
TextSourceAttribution (
282
- settings.language == 'ru_RU'
283
- ? '2GIS contributors'
284
- : 'OpenStreetMap contributors' ,
285
- onTap: () => weatherController.urlLauncher (
286
- settings.language == 'ru_RU'
287
- ? 'https://law.2gis.ru/copyright'
288
- : 'https://openstreetmap.org/copyright' ),
280
+ 'OpenStreetMap contributors' ,
281
+ onTap: () => weatherController
282
+ .urlLauncher ('https://openstreetmap.org/copyright' ),
289
283
),
290
284
],
291
285
),
You can’t perform that action at this time.
0 commit comments