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() { Widget _buildMapTileLayer() {
return TileLayer( return TileLayer(
urlTemplate: settings.language == 'ru_RU' urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
? 'https://tile2.maps.2gis.com/tiles?x={x}&y={y}&z={z}'
: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
userAgentPackageName: 'com.darkmoonight.rain', userAgentPackageName: 'com.darkmoonight.rain',
); );
} }
@ -173,15 +171,10 @@ class _SelectGeolocationState extends State<SelectGeolocation> {
animationConfig: const ScaleRAWA(), animationConfig: const ScaleRAWA(),
attributions: [ attributions: [
TextSourceAttribution( TextSourceAttribution(
settings.language == 'ru_RU' 'OpenStreetMap contributors',
? '2GIS contributors'
: 'OpenStreetMap contributors',
onTap: () => weatherController onTap: () => weatherController
.urlLauncher(settings .urlLauncher(
.language == 'https://openstreetmap.org/copyright'),
'ru_RU'
? 'https://law.2gis.ru/copyright'
: 'https://openstreetmap.org/copyright'),
), ),
], ],
), ),

View file

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