Files
TREK/shared/src/i18n/es/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

56 lines
3.1 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', // same-as-en
'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',
'poi.cat.bakeries': 'Panaderías',
'poi.cat.groceries': 'Tiendas de alimentación',
'poi.pluginCategories': 'Categorías de plugins',
'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.hiking': 'Senderismo',
'map.baseLayer.hikingDown': 'OpenHikingMap no responde ahora mismo. Cambia a otro mapa; tu ruta se queda como está.',
'map.baseLayer.cycle': 'Bici',
'map.baseLayer.cycleDown': 'CyclOSM no responde ahora mismo. Cambia a otro mapa; tu ruta sigue igual.',
'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.placeNames.show': 'Mostrar nombres de lugares',
'map.placeNames.hide': 'Ocultar nombres de lugares',
'map.overview.show': 'Mostrar todo el viaje',
'map.lock.lock': 'Bloquear la vista del mapa',
'map.lock.unlock': 'Dejar que el mapa siga la selección',
'map.overview.hide': 'Ocultar todo el viaje',
'map.overview.total': 'Distancia total',
'map.attribution': 'Créditos del mapa',
'map.overview.distanceAtLeast': 'al menos {distance}',
'map.overview.notRouted': 'ruta no calculada',
'map.overview.unrouted': 'No se pudieron calcular {count} tramos, así que las distancias están incompletas.',
'map.overview.unrouted.one': 'No se pudo calcular {count} tramo, así que las distancias están incompletas.',
'map.overview.dayUnrouted': 'No se pudieron calcular {count} tramos de este día',
'map.overview.dayUnrouted.one': 'No se pudo calcular {count} tramo de este día',
'map.baseLayer.topo': 'Topográfico',
'map.webgl2.fallback':
'Este navegador no ofrece WebGL2, que necesitan los mapas GL, así que los mapas se muestran con Leaflet.',
'map.webgl2.terrain': 'El 3D necesita WebGL2, que este navegador no ofrece. El mapa se queda en 2D.',
'map.offlineBasemap': 'Mapa sin conexión',
'map.offlineShowStored': 'Mostrar mapa sin conexión',
'map.templateClassic': 'Plantilla del mapa en 2D clásico',
};
export default map;