mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 09:22:15 +00:00
06e6e25b25
While a hike is planned, the planner's map switch offers "Hiking" beside the map, topo and satellite: OpenHikingMap, with marked trails over the terrain. It is a choice of the planner's view alone, like topo: the global map setting, the tour and its days stay as they are. With no tour open, over an import viewed as it came in and for a paddle tour it is not offered, and a choice made earlier falls back to the standard map there. openmaps.fr's tile usage policy is followed: tiles load only as the map shows them, with the browser's Referer, from the server's own caching; no service worker rule keeps them and the 3D flyover's warm-up passes their source by. Its credit and donation link are on the map; the 3D map, whose attribution is folded away under the panel, shows them as a line of its own above its controls. The service is best effort. A run of failed tiles while it is shown marks the switch, with a tooltip and a status for screen readers that say it is not answering and that the tour is untouched; one tile arriving clears it. The tile health the seamark overlay had is now useTileHealth, shared by both. The source is free for non-commercial installs up to 500,000 tiles a month. tours_hiking_map_enabled is an admin switch under Tours (admin tours-hiking-map, audited), on by default, for an install that is commercial or larger to switch off until it has an agreement with the operator. /api/addons carries it as toursHikingMap, true only while Tours is on. Leaflet, GL and the 3D map read one table of the planner's raster bases (tourRasterBases), so topo and the hiking map are drawn the same way. tile.openmaps.fr is on the CSP's connect-src for the GL maps.
38 lines
1.8 KiB
TypeScript
38 lines
1.8 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.pluginCategories': '來自外掛的分類',
|
|
'map.showAllConnections': '顯示所有預訂路線',
|
|
'map.hideAllConnections': '隱藏所有預訂路線',
|
|
'map.baseLayer.default': '地圖',
|
|
'map.baseLayer.satellite': '衛星',
|
|
'map.baseLayer.hiking': '健行',
|
|
'map.baseLayer.hikingDown': 'OpenHikingMap 目前沒有回應。請切換到其他地圖,你的路線保持不變。',
|
|
'map.baseLayer.switchToSatellite': '切換到衛星檢視',
|
|
'map.baseLayer.switchToDefault': '切換到地圖檢視',
|
|
'map.location.denied': '定位權限已被封鎖。請檢查裝置設定,已安裝的應用程式擁有與瀏覽器分開的定位權限。',
|
|
'map.location.unavailable': '無法判斷你的位置。',
|
|
'map.location.timeout': '定位花費的時間過長。請在能看到天空的開闊位置重試。',
|
|
'map.overview.show': '顯示整趟行程',
|
|
'map.lock.lock': '鎖定地圖視角',
|
|
'map.lock.unlock': '讓地圖跟隨所選項目',
|
|
'map.overview.hide': '隱藏整趟行程',
|
|
'map.overview.total': '總距離',
|
|
'map.attribution': '地圖來源',
|
|
'map.overview.unrouted': '有 {count} 段無法計算路線,因此距離不完整。',
|
|
'map.overview.dayUnrouted': '本日有 {count} 段無法計算路線',
|
|
};
|
|
export default map;
|