Commit graph

14 commits

Author SHA1 Message Date
Austin Payne
b1aee0a7d6 feature: add icon when downloading tiles for offline use
It can be difficult to tell when the app is in progress of downloading map tiles
for offline use, especially when hitting a slow server like USGS or on a slow
network. Adds a download circle icon to indicate download progress to the
user. Also helpfully informs when a zoom level is outside the range.
2024-02-15 21:41:18 -07:00
Austin Payne
950aa4a514 chore: remove dead OfflineTileManager code 2024-02-15 21:12:00 -07:00
Austin Payne
3c0e56aeaf improvement: avoid duplicate map tile loading
Previously a map tile cache miss would cause 2x loading of the tile: once from
the remote tile server (which is then written to disk) and once from disk
during the default MKTileOverlay.loadTile function. Instead we now directly
implement loadTile so that we can avoid the duplicate loading and simply
return the fetched remote tile after it is cached, which leads to a
noticeable improvement in offline map performance.
2024-02-15 21:12:00 -07:00
Garth Vander Houwen
b69ca32bcd
Merge pull request #481 from Austinpayne/fix/offline-overfetching
fix: don't fetch tiles greater than specified upper bound
2024-02-12 18:37:20 -08:00
Austin Payne
58fa4e26f1 fix: don't fetch tiles greater than specified upper bound 2024-02-11 21:57:31 -07:00
Austin Payne
ae66e5af59 fix: map tiles being downloaded remotely twice
The url returned by MKTileOverlay.url(forTilePath:) is subsequently used by
MKTileOverlay.loadTile(at:result:) for download. In the case of a tile that
was just cached by OfflineTileManager.persistLocally(path:) we now return
the local file URL to avoid downloading the remote image twice.
2024-02-11 21:57:17 -07:00
Garth Vander Houwen
a990d7f2bd Lint 2023-08-26 23:17:30 -07:00
Garth Vander Houwen
d27123a49a Delete unused code 2023-05-14 09:40:36 -07:00
Garth Vander Houwen
0c852a5202 Weather layer 2023-05-14 00:16:55 -07:00
Garth Vander Houwen
ba3ef4af3e Managed Device
Delete by tile server
2023-05-13 20:50:20 -07:00
Garth Vander Houwen
c425486658 More tile sources
tile server attribution
Signal strength indicator
2023-05-09 19:31:25 -07:00
Garth Vander Houwen
7cc3e2c5e4 Clean up offline maps settings 2023-05-08 07:35:31 -07:00
Garth Vander Houwen
e1bf4b0212 Somewhat working offline maps 2023-05-06 16:15:12 -07:00
Garth Vander Houwen
60a1687839 Initial offline maps setup 2023-05-05 17:13:35 -07:00