mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Merge pull request #481 from Austinpayne/fix/offline-overfetching
fix: don't fetch tiles greater than specified upper bound
This commit is contained in:
commit
b69ca32bcd
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ class OfflineTileManager: ObservableObject {
|
|||
if fileManager.fileExists(atPath: tilesUrl.path) {
|
||||
return tilesUrl
|
||||
} else {
|
||||
if UserDefaults.enableOfflineMaps { // Get and persist newTile
|
||||
if UserDefaults.enableOfflineMaps, UserDefaults.mapTileServer.zoomRange.contains(path.z) { // Get and persist newTile
|
||||
return persistLocally(path: path)
|
||||
} else { // Else display empty tile (transparent over Maps tiles)
|
||||
return Bundle.main.url(forResource: "alpha", withExtension: "png")!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue