mirror of
https://github.com/darkmoonight/Rain.git
synced 2025-06-28 12:09:57 +00:00
Delete 2gis
This commit is contained in:
parent
c0c15bb811
commit
5cd6e2e6c8
2 changed files with 8 additions and 21 deletions
|
@ -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'),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -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'),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue