From c997440f756b5a4f19015ac666062f4850594640 Mon Sep 17 00:00:00 2001 From: wkawecki Date: Fri, 22 Apr 2022 15:00:17 +0200 Subject: [PATCH] meshtastic#413 Add Satellite Map Layers - correct after remove offline regions --- app/src/main/java/com/geeksville/mesh/ui/MapFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/MapFragment.kt b/app/src/main/java/com/geeksville/mesh/ui/MapFragment.kt index 65426b52..22055480 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/MapFragment.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/MapFragment.kt @@ -229,10 +229,10 @@ class MapFragment : ScreenFragment("Map"), Logging { if (userStyleURI != null) { offlineManager.removeStylePack(userStyleURI!!) - mapView?.getMapboxMap()?.loadStyleUri(Style.OUTDOORS) + mapView?.getMapboxMap()?.loadStyleUri(loadMapStyleFromPref()) } else { offlineManager.removeStylePack(mapView?.getMapboxMap()?.getStyle()?.styleURI.toString()) - mapView?.getMapboxMap()?.loadStyleUri(Style.OUTDOORS) + mapView?.getMapboxMap()?.loadStyleUri(loadMapStyleFromPref()) } MapboxMap.clearData(resourceOptions) { it.error?.let { error ->