mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +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.
58 lines
3.0 KiB
TypeScript
58 lines
3.0 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const map: TranslationStrings = {
|
|
'map.connections': 'Verbindingen',
|
|
'map.showConnections': 'Boekingsroutes tonen',
|
|
'map.hideConnections': 'Boekingsroutes verbergen',
|
|
'poi.searchThisArea': 'Dit gebied doorzoeken',
|
|
'poi.cat.restaurants': 'Restaurants', // same-as-en
|
|
'poi.cat.cafes': 'Cafés', // same-as-en
|
|
'poi.cat.bars': 'Bars & uitgaan',
|
|
'poi.cat.hotels': 'Accommodatie',
|
|
'poi.cat.sights': 'Bezienswaardigheden',
|
|
'poi.cat.museums': 'Musea & cultuur',
|
|
'poi.cat.nature': 'Natuur & parken',
|
|
'poi.cat.activities': 'Activiteiten',
|
|
'poi.cat.bakeries': 'Bakkerijen',
|
|
'poi.cat.groceries': 'Supermarkten',
|
|
'poi.pluginCategories': 'Categorieën uit plugins',
|
|
'map.showAllConnections': 'Alle boekingsroutes tonen',
|
|
'map.hideAllConnections': 'Alle boekingsroutes verbergen',
|
|
'map.baseLayer.default': 'Kaart',
|
|
'map.baseLayer.satellite': 'Satelliet',
|
|
'map.baseLayer.hiking': 'Wandelen',
|
|
'map.baseLayer.hikingDown':
|
|
'OpenHikingMap reageert op dit moment niet. Schakel over naar een andere kaart; je tocht blijft zoals hij is.',
|
|
'map.baseLayer.cycle': 'Fiets',
|
|
'map.baseLayer.cycleDown':
|
|
'CyclOSM reageert nu niet. Schakel over naar een andere kaart; je tocht blijft zoals hij is.',
|
|
'map.baseLayer.switchToSatellite': 'Overschakelen naar satellietweergave',
|
|
'map.baseLayer.switchToDefault': 'Overschakelen naar kaartweergave',
|
|
'map.location.denied':
|
|
'Locatietoegang is geblokkeerd. Controleer de apparaatinstellingen; een geïnstalleerde app heeft een eigen locatiemachtiging, los van de browser.',
|
|
'map.location.unavailable': 'Je locatie kon niet worden bepaald.',
|
|
'map.location.timeout': 'Het bepalen van je locatie duurde te lang. Probeer het opnieuw met vrij zicht op de lucht.',
|
|
'map.placeNames.show': 'Plaatsnamen tonen',
|
|
'map.placeNames.hide': 'Plaatsnamen verbergen',
|
|
'map.overview.show': 'Hele reis tonen',
|
|
'map.lock.lock': 'Kaartweergave vergrendelen',
|
|
'map.lock.unlock': 'Kaart de selectie laten volgen',
|
|
'map.overview.hide': 'Hele reis verbergen',
|
|
'map.overview.total': 'Totale afstand',
|
|
'map.attribution': 'Kaartvermeldingen',
|
|
'map.overview.distanceAtLeast': 'minstens {distance}',
|
|
'map.overview.notRouted': 'niet berekend',
|
|
'map.overview.unrouted': '{count} etappes konden niet worden berekend, dus de afstanden zijn onvolledig.',
|
|
'map.overview.unrouted.one': '{count} etappe kon niet worden berekend, dus de afstanden zijn onvolledig.',
|
|
'map.overview.dayUnrouted': '{count} etappes van deze dag konden niet worden berekend',
|
|
'map.overview.dayUnrouted.one': '{count} etappe van deze dag kon niet worden berekend',
|
|
'map.baseLayer.topo': 'Topografisch',
|
|
'map.webgl2.fallback':
|
|
'Deze browser biedt geen WebGL2, dat GL-kaarten nodig hebben, dus kaarten worden met Leaflet getoond.',
|
|
'map.webgl2.terrain': '3D heeft WebGL2 nodig, dat deze browser niet biedt. De kaart blijft in 2D.',
|
|
'map.offlineBasemap': 'Offline kaart',
|
|
'map.offlineShowStored': 'Offline kaart tonen',
|
|
'map.templateClassic': 'Kaartsjabloon in klassiek 2D',
|
|
};
|
|
export default map;
|