mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 07:53:09 +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.4 KiB
TypeScript
30 lines
1.4 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const map: TranslationStrings = {
|
|
'map.connections': 'Conexiones',
|
|
'map.showConnections': 'Mostrar rutas de reservas',
|
|
'map.hideConnections': 'Ocultar rutas de reservas',
|
|
'poi.searchThisArea': 'Buscar en esta zona',
|
|
'poi.cat.restaurants': 'Restaurantes',
|
|
'poi.cat.cafes': 'Cafés',
|
|
'poi.cat.bars': 'Bares y ocio nocturno',
|
|
'poi.cat.hotels': 'Alojamiento',
|
|
'poi.cat.sights': 'Lugares de interés',
|
|
'poi.cat.museums': 'Museos y cultura',
|
|
'poi.cat.nature': 'Naturaleza y parques',
|
|
'poi.cat.activities': 'Actividades',
|
|
'map.showAllConnections': 'Mostrar todas las rutas de reservas',
|
|
'map.hideAllConnections': 'Ocultar todas las rutas de reservas',
|
|
'map.baseLayer.default': 'Mapa',
|
|
'map.baseLayer.satellite': 'Satélite',
|
|
'map.baseLayer.switchToSatellite': 'Cambiar a vista de satélite',
|
|
'map.baseLayer.switchToDefault': 'Cambiar a vista de mapa',
|
|
'map.location.denied': 'El acceso a la ubicación está bloqueado. Revisa los ajustes del dispositivo; una app instalada tiene su propio permiso de ubicación, independiente del navegador.',
|
|
'map.location.unavailable': 'No se pudo determinar tu ubicación.',
|
|
'map.location.timeout': 'La localización tardó demasiado. Inténtalo de nuevo con una vista más despejada del cielo.',
|
|
'map.overview.show': 'Mostrar todo el viaje',
|
|
'map.overview.hide': 'Ocultar todo el viaje',
|
|
'map.overview.total': 'Distancia total',
|
|
};
|
|
export default map;
|