mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 15:06:32 +00:00
bf1900c3a0
Extract the day route builder out of useRouteCalculation into a pure module and aggregate it over the whole trip: one map with every day's route, each day in its own colour, the mode per stage and the trip's total distance. Straight lines first, roads as they answer; a refused leg keeps its line and adds no distance. Give the floating map controls one shared drop shadow while adding the toggle, so the new pill and the base-layer switcher stand off the tiles the way the locate button always has. Document the control in wiki/Map-Features.md. Addresses #1736
30 lines
1.3 KiB
TypeScript
30 lines
1.3 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': '活动',
|
|
'map.showAllConnections': '显示所有预订路线',
|
|
'map.hideAllConnections': '隐藏所有预订路线',
|
|
'map.baseLayer.default': '地图',
|
|
'map.baseLayer.satellite': '卫星',
|
|
'map.baseLayer.switchToSatellite': '切换到卫星视图',
|
|
'map.baseLayer.switchToDefault': '切换到地图视图',
|
|
'map.location.denied': '定位权限已被阻止。请检查设备设置,已安装的应用拥有与浏览器分开的定位权限。',
|
|
'map.location.unavailable': '无法确定你的位置。',
|
|
'map.location.timeout': '定位耗时过长。请在能看到天空的开阔位置重试。',
|
|
'map.overview.show': '显示整个行程',
|
|
'map.overview.hide': '隐藏整个行程',
|
|
'map.overview.total': '总距离',
|
|
};
|
|
export default map;
|