Skip to content

Commit

Permalink
Delete 2gis
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonavichus committed Aug 23, 2024
1 parent c0c15bb commit 5cd6e2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
15 changes: 4 additions & 11 deletions lib/app/modules/geolocation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ class _SelectGeolocationState extends State<SelectGeolocation> {

Widget _buildMapTileLayer() {
return TileLayer(
urlTemplate: settings.language == 'ru_RU'
? 'https://tile2.maps.2gis.com/tiles?x={x}&y={y}&z={z}'
: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
userAgentPackageName: 'com.darkmoonight.rain',
);
}
Expand Down Expand Up @@ -173,15 +171,10 @@ class _SelectGeolocationState extends State<SelectGeolocation> {
animationConfig: const ScaleRAWA(),
attributions: [
TextSourceAttribution(
settings.language == 'ru_RU'
? '2GIS contributors'
: 'OpenStreetMap contributors',
'OpenStreetMap contributors',
onTap: () => weatherController
.urlLauncher(settings
.language ==
'ru_RU'
? 'https://law.2gis.ru/copyright'
: 'https://openstreetmap.org/copyright'),
.urlLauncher(
'https://openstreetmap.org/copyright'),
),
],
),
Expand Down
14 changes: 4 additions & 10 deletions lib/app/modules/map/view/map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,7 @@ class _MapWeatherState extends State<MapWeather> with TickerProviderStateMixin {

Widget _buildMapTileLayer(CacheStore cacheStore) {
return TileLayer(
urlTemplate: settings.language == 'ru_RU'
? 'https://tile2.maps.2gis.com/tiles?x={x}&y={y}&z={z}'
: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
userAgentPackageName: 'com.darkmoonight.rain',
tileProvider: CachedTileProvider(
store: cacheStore,
Expand Down Expand Up @@ -279,13 +277,9 @@ class _MapWeatherState extends State<MapWeather> with TickerProviderStateMixin {
alignment: AttributionAlignment.bottomLeft,
attributions: [
TextSourceAttribution(
settings.language == 'ru_RU'
? '2GIS contributors'
: 'OpenStreetMap contributors',
onTap: () => weatherController.urlLauncher(
settings.language == 'ru_RU'
? 'https://law.2gis.ru/copyright'
: 'https://openstreetmap.org/copyright'),
'OpenStreetMap contributors',
onTap: () => weatherController
.urlLauncher('https://openstreetmap.org/copyright'),
),
],
),
Expand Down

0 comments on commit 5cd6e2e

Please sign in to comment.