mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 00:43:15 +00:00
32879dd528
A MapLibre user could only draw OpenFreeMap styles; a raster template was Leaflet's alone. With maplibre_style set to trek:template, MapLibre now draws the template the trip map already resolves for Leaflet (CARTO key, keyless fallback and dark default included), so both renderers show the same map. No stored row holds the keyword, so every existing user sees exactly the map they saw before, and Mapbox is untouched. - glBasemap turns the basemap spec into a raster style document (256px tiles as Leaflet requests them, the provider's deepest zoom, the credit, OpenFreeMap glyphs for the map's own labels) and resolves trek:ofm-auto to Liberty or OpenFreeMap Dark with the colour scheme. - glCanFetch decides whether a GL map may fetch a basemap here: https on a host the CSP names, the shipped ones or MAP_EXTRA_CONNECT_HOSTS from the app config. GCJ-02 tiles (Amap) and other hosts are drawn by Leaflet for that render, the setting untouched. - rasterHealth watches the first tiles of a template map: a CSP refusal or twelve failures without a success move every map drawing that template to Leaflet for the session, with a pill that says so. - useEffectiveMapEngine decides this on the engine that actually draws and runs the offline checks after it; a stored raster template keeps drawing offline where Leaflet would keep the same tiles. - The journey map uses the same hook: the same template, the same fallback and now the offline basemap with its pill as the trip map has it. - A MapLibre raster style stops at zoom 19 like Leaflet; the Mapbox options stay as they were. The offline pill moves to BasemapPill for both maps. Dropping the unused imports there lowers the eslint baseline.
56 lines
3.2 KiB
TypeScript
56 lines
3.2 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const map: TranslationStrings = {
|
|
'map.connections': 'Kapcsolatok',
|
|
'map.showConnections': 'Foglalási útvonalak megjelenítése',
|
|
'map.hideConnections': 'Foglalási útvonalak elrejtése',
|
|
'poi.searchThisArea': 'Keresés ezen a területen',
|
|
'poi.cat.restaurants': 'Éttermek',
|
|
'poi.cat.cafes': 'Kávézók',
|
|
'poi.cat.bars': 'Bárok és éjszakai élet',
|
|
'poi.cat.hotels': 'Szállás',
|
|
'poi.cat.sights': 'Látnivalók',
|
|
'poi.cat.museums': 'Múzeumok és kultúra',
|
|
'poi.cat.nature': 'Természet és parkok',
|
|
'poi.cat.activities': 'Programok',
|
|
'poi.cat.bakeries': 'Pékségek',
|
|
'poi.cat.groceries': 'Élelmiszerboltok',
|
|
'poi.pluginCategories': 'Pluginok kategóriái',
|
|
'map.showAllConnections': 'Összes foglalási útvonal megjelenítése',
|
|
'map.hideAllConnections': 'Összes foglalási útvonal elrejtése',
|
|
'map.baseLayer.default': 'Térkép',
|
|
'map.baseLayer.satellite': 'Műhold',
|
|
'map.baseLayer.hiking': 'Túrázás',
|
|
'map.baseLayer.hikingDown': 'Az OpenHikingMap most nem válaszol. Válts másik térképre, a túrád változatlan marad.',
|
|
'map.baseLayer.cycle': 'Kerékpár',
|
|
'map.baseLayer.cycleDown': 'A CyclOSM most nem válaszol. Válts másik térképre, a túrád változatlan marad.',
|
|
'map.baseLayer.switchToSatellite': 'Váltás műholdas nézetre',
|
|
'map.baseLayer.switchToDefault': 'Váltás térkép nézetre',
|
|
'map.location.denied':
|
|
'A helyhozzáférés le van tiltva. Ellenőrizd a készülék beállításait; a telepített alkalmazásnak saját helyengedélye van, a böngészőtől függetlenül.',
|
|
'map.location.unavailable': 'A tartózkodási helyed nem határozható meg.',
|
|
'map.location.timeout': 'A helymeghatározás túl sokáig tartott. Próbáld újra szabad ég alatt.',
|
|
'map.placeNames.show': 'Helynevek megjelenítése',
|
|
'map.placeNames.hide': 'Helynevek elrejtése',
|
|
'map.overview.show': 'Teljes utazás megjelenítése',
|
|
'map.lock.lock': 'Térképnézet zárolása',
|
|
'map.lock.unlock': 'A térkép kövesse a kijelölést',
|
|
'map.overview.hide': 'Teljes utazás elrejtése',
|
|
'map.overview.total': 'Teljes távolság',
|
|
'map.attribution': 'Térkép forrásai',
|
|
'map.overview.distanceAtLeast': 'legalább {distance}',
|
|
'map.overview.notRouted': 'nincs kiszámítva',
|
|
'map.overview.unrouted': '{count} szakaszt nem sikerült kiszámítani, ezért a távolságok hiányosak.',
|
|
'map.overview.unrouted.one': '{count} szakaszt nem sikerült kiszámítani, ezért a távolságok hiányosak.',
|
|
'map.overview.dayUnrouted': 'Ennek a napnak {count} szakaszát nem sikerült kiszámítani',
|
|
'map.overview.dayUnrouted.one': 'Ennek a napnak {count} szakaszát nem sikerült kiszámítani',
|
|
'map.baseLayer.topo': 'Topográfiai',
|
|
'map.webgl2.fallback':
|
|
'Ez a böngésző nem kínál WebGL2-t, amelyre a GL-térképeknek szükségük van, ezért a térképek Leaflettel jelennek meg.',
|
|
'map.webgl2.terrain': 'A 3D-hez WebGL2 kell, amelyet ez a böngésző nem kínál. A térkép 2D-ben marad.',
|
|
'map.offlineBasemap': 'Offline térkép',
|
|
'map.offlineShowStored': 'Offline térkép megjelenítése',
|
|
'map.templateClassic': 'Térkép sablon klasszikus 2D-ben',
|
|
};
|
|
export default map;
|