Skip to content

Commit 5cd6e2e

Browse files
committed
Delete 2gis
1 parent c0c15bb commit 5cd6e2e

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

lib/app/modules/geolocation.dart

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ class _SelectGeolocationState extends State<SelectGeolocation> {
8080

8181
Widget _buildMapTileLayer() {
8282
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',
8684
userAgentPackageName: 'com.darkmoonight.rain',
8785
);
8886
}
@@ -173,15 +171,10 @@ class _SelectGeolocationState extends State<SelectGeolocation> {
173171
animationConfig: const ScaleRAWA(),
174172
attributions: [
175173
TextSourceAttribution(
176-
settings.language == 'ru_RU'
177-
? '2GIS contributors'
178-
: 'OpenStreetMap contributors',
174+
'OpenStreetMap contributors',
179175
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'),
185178
),
186179
],
187180
),

lib/app/modules/map/view/map.dart

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,7 @@ class _MapWeatherState extends State<MapWeather> with TickerProviderStateMixin {
178178

179179
Widget _buildMapTileLayer(CacheStore cacheStore) {
180180
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',
184182
userAgentPackageName: 'com.darkmoonight.rain',
185183
tileProvider: CachedTileProvider(
186184
store: cacheStore,
@@ -279,13 +277,9 @@ class _MapWeatherState extends State<MapWeather> with TickerProviderStateMixin {
279277
alignment: AttributionAlignment.bottomLeft,
280278
attributions: [
281279
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'),
289283
),
290284
],
291285
),

0 commit comments

Comments
 (0)