Delete 2gis

This commit is contained in:
Yoshi 2024-08-23 07:15:37 +03:00
parent c0c15bb811
commit 5cd6e2e6c8
2 changed files with 8 additions and 21 deletions

View file

@ -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',
);
}
@ -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'),
),
],
),

View file

@ -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,
@ -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'),
),
],
),