mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
feat(native): an iOS map tile store, so viewed maps keep working offline
WKWebView runs no service worker for a self-hosted server, so on iOS nothing kept a map tile once it scrolled away. Binaries with the tileCache feature answer a trek-tile:// scheme from a store on disk: a tile viewed once is served from there for up to 30 days (Mapbox's limit for a device cache, applied to every provider), then fetched anew; the store keeps under 250 MB, dropping the least recently used tiles first, sends a unique app User-Agent, and never prefetches. Mapbox's own resources (style, tiles, glyphs, sprites) and Leaflet's raster tiles go through it, telemetry never does. Offline, a Mapbox map in such an app now stays Mapbox where it was viewed, and the pill offers the stored trip region instead. The offline settings show what the store takes against its limit, with a way to empty it.
This commit is contained in:
@@ -43,5 +43,6 @@ const map: TranslationStrings = {
|
||||
'map.webgl2.fallback': '이 브라우저는 GL 지도에 필요한 WebGL2를 지원하지 않아 지도를 Leaflet으로 표시합니다.',
|
||||
'map.webgl2.terrain': '3D에는 WebGL2가 필요하지만 이 브라우저는 지원하지 않습니다. 지도는 2D로 유지됩니다.',
|
||||
'map.offlineBasemap': '오프라인 지도',
|
||||
'map.offlineShowStored': '오프라인 지도 보기',
|
||||
};
|
||||
export default map;
|
||||
|
||||
@@ -646,6 +646,9 @@ const settings: TranslationStrings = {
|
||||
'settings.apiKeys.modal.done': '완료',
|
||||
'settings.mcp.deprecated': '지원 중단 예정',
|
||||
'settings.offline.cache.dateRange': '{start}부터 {end}까지',
|
||||
'settings.offline.tileStore.title': '본 지도 타일',
|
||||
'settings.offline.tileStore.usage': '이 기기에서 {limit} 중 {used}, 최대 30일간 보관',
|
||||
'settings.offline.tileStore.clear': '비우기',
|
||||
};
|
||||
|
||||
export default settings;
|
||||
|
||||
Reference in New Issue
Block a user