Files
TREK/shared/src/i18n/ja/map.ts
T
Maurice 32879dd528 feat(maps): MapLibre draws the user's map template on trek:template
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.
2026-11-30 16:22:52 +01:00

55 lines
3.2 KiB
TypeScript

import type { TranslationStrings } from '../types';
const map: TranslationStrings = {
'map.connections': '接続',
'map.showConnections': '予約ルートを表示',
'map.hideConnections': '予約ルートを非表示',
'poi.searchThisArea': 'このエリアを検索',
'poi.cat.restaurants': 'レストラン',
'poi.cat.cafes': 'カフェ',
'poi.cat.bars': 'バー・ナイトライフ',
'poi.cat.hotels': '宿泊施設',
'poi.cat.sights': '観光スポット',
'poi.cat.museums': '美術館・文化施設',
'poi.cat.nature': '自然・公園',
'poi.cat.activities': 'アクティビティ',
'poi.cat.bakeries': 'パン屋',
'poi.cat.groceries': '食料品店',
'poi.pluginCategories': 'プラグインのカテゴリ',
'map.showAllConnections': 'すべての予約ルートを表示',
'map.hideAllConnections': 'すべての予約ルートを非表示',
'map.baseLayer.default': '地図',
'map.baseLayer.satellite': '衛星',
'map.baseLayer.hiking': 'ハイキング',
'map.baseLayer.hikingDown':
'OpenHikingMap が現在応答していません。別の地図に切り替えてください。ツアーはそのまま残ります。',
'map.baseLayer.cycle': '自転車',
'map.baseLayer.cycleDown': 'CyclOSM が現在応答していません。別の地図に切り替えてください。ツアーはそのままです。',
'map.baseLayer.switchToSatellite': '衛星表示に切り替える',
'map.baseLayer.switchToDefault': '地図表示に切り替える',
'map.location.denied':
'位置情報へのアクセスがブロックされています。端末の設定を確認してください。インストールしたアプリにはブラウザとは別の位置情報の許可があります。',
'map.location.unavailable': '現在地を特定できませんでした。',
'map.location.timeout': '位置情報の取得に時間がかかりすぎました。空がよく見える場所でもう一度お試しください。',
'map.placeNames.show': '地名を表示',
'map.placeNames.hide': '地名を非表示',
'map.overview.show': '旅程全体を表示',
'map.lock.lock': '地図の表示を固定',
'map.lock.unlock': '選択に合わせて地図を移動',
'map.overview.hide': '旅程全体を非表示',
'map.overview.total': '合計距離',
'map.attribution': '地図のクレジット',
'map.overview.distanceAtLeast': '{distance}以上',
'map.overview.notRouted': 'ルート未計算',
'map.overview.unrouted': '{count}区間のルートを計算できなかったため、距離は不完全です。',
'map.overview.dayUnrouted': 'この日の{count}区間のルートを計算できませんでした',
'map.baseLayer.topo': '地形図',
'map.webgl2.fallback':
'このブラウザーは GL マップに必要な WebGL2 に対応していないため、地図は Leaflet で表示されます。',
'map.webgl2.terrain': '3D には WebGL2 が必要ですが、このブラウザーは対応していません。地図は 2D のままです。',
'map.offlineBasemap': 'オフライン地図',
'map.offlineShowStored': 'オフライン地図を表示',
'map.templateClassic': '地図テンプレートをクラシック 2D で表示',
};
export default map;