Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

feat(tours): lay pistes, cross-country trails and lifts over the planner map

Maurice5ff7e54e0973
diff --git a/client/src/components/Map/MapLayerSwitcher.test.tsx b/client/src/components/Map/MapLayerSwitcher.test.tsx
index a100ce5ff..61e4b80fc 100644
--- a/client/src/components/Map/MapLayerSwitcher.test.tsx
+++ b/client/src/components/Map/MapLayerSwitcher.test.tsx
@@ -1,9 +1,10 @@
-// FE-COMP-MAPLAYER-001 to FE-COMP-MAPLAYER-020
+// FE-COMP-MAPLAYER-001 to FE-COMP-MAPLAYER-023
import React from 'react'
import { describe, it, expect, vi } from 'vitest'
import { render, screen, fireEvent } from '../../../tests/helpers/render'
import { MapLayerSwitcher, TourMapLayerSwitcher, MAP_ROUND_CONTROL_SIZE } from './MapLayerSwitcher'
import type { FerrataMapLayer } from '../Ferratas/useFerrataMapLayer'
+import type { ToggleableRasterOverlay } from './mapRasterOverlay'
describe('MapLayerSwitcher', () => {
it('FE-COMP-MAPLAYER-001: on the default layer, offers the switch to satellite', () => {
@@ -235,3 +236,53 @@ describe('TourMapLayerSwitcher via ferrata switch', () => {
expect(screen.getByRole('button', { name: 'Set points' })).toHaveClass('text-content-muted')
})
})
+
+const pisteOverlay = (overrides: Partial<ToggleableRasterOverlay> = {}): ToggleableRasterOverlay => ({
+ id: 'pistes',
+ url: 'https://tiles.opensnowmap.org/pistes/{z}/{x}/{y}.png',
+ attribution: 'OpenSnowMap',
+ minZoom: 9,
+ maxZoom: 18,
+ active: false,
+ status: 'off',
+ onToggle: vi.fn(),
+ onTileError: vi.fn(),
+ onTileLoad: vi.fn(),
+ ...overrides,
+})
+
+describe('TourMapLayerSwitcher piste switch (SKI-01)', () => {
+ it('FE-COMP-MAPLAYER-021: the pistes switch sits on its icon alone, named by its tooltip, and offers no key while off', async () => {
+ const overlay = pisteOverlay()
+ render(<TourMapLayerSwitcher active="default" onChange={() => {}} ferrataLayer={ferrataLayer()} layers={{ overlays: [overlay] }} />)
+ const toggle = screen.getByRole('button', { name: 'Pistes, cross-country trails and lifts' })
+ expect(toggle).toHaveAttribute('aria-pressed', 'false')
+ expect(toggle.textContent).toBe('')
+ expect(screen.queryByTestId('piste-key-button')).toBeNull()
+ fireEvent.click(toggle)
+ expect(overlay.onToggle).toHaveBeenCalledTimes(1)
+ fireEvent.mouseEnter(toggle)
+ expect(await screen.findByRole('tooltip')).toHaveTextContent('Pistes, cross-country trails and lifts')
+ })
+
+ it('FE-COMP-MAPLAYER-022: on, the switch is pressed in the accent and the key rides beside it in the same pill', () => {
+ render(<TourMapLayerSwitcher active="default" onChange={() => {}} layers={{ overlays: [pisteOverlay({ active: true, status: 'on' })] }} />)
+ const toggle = screen.getByRole('button', { name: 'Pistes, cross-country trails and lifts' })
+ expect(toggle).toHaveAttribute('aria-pressed', 'true')
+ expect(toggle).toHaveClass('bg-accent', 'text-accent-text')
+ const key = screen.getByTestId('piste-key-button')
+ expect(screen.getByRole('group')).toContainElement(key)
+ expect(key).toHaveAccessibleName('Piste key')
+ })
+
+ it('FE-COMP-MAPLAYER-023: a piste source that stopped answering shows the warning badge, says so, and hides the key', async () => {
+ render(<TourMapLayerSwitcher active="default" onChange={() => {}} layers={{ overlays: [pisteOverlay({ active: true, status: 'down' })] }} />)
+ const toggle = screen.getByRole('button', { name: 'Pistes, cross-country trails and lifts' })
+ expect(toggle).toHaveAttribute('data-status', 'down')
+ expect(toggle).toHaveTextContent('!')
+ expect(screen.queryByTestId('piste-key-button')).toBeNull()
+ expect(screen.getByRole('status')).toHaveTextContent('Pistes are not loading. The map and your route still work.')
+ fireEvent.mouseEnter(toggle)
+ expect(await screen.findByRole('tooltip')).toHaveTextContent('Pistes are not loading.')
+ })
+})
diff --git a/client/src/components/Map/MapLayerSwitcher.tsx b/client/src/components/Map/MapLayerSwitcher.tsx
index b162f8c48..b2de1da97 100644
--- a/client/src/components/Map/MapLayerSwitcher.tsx
+++ b/client/src/components/Map/MapLayerSwitcher.tsx
@@ -1,6 +1,7 @@
-import { Anchor, Bike, Footprints, Loader2, Map as MapIcon, MapPinPlus, Mountain, Rotate3d, Satellite } from 'lucide-react'
+import { Anchor, Bike, Footprints, Loader2, Map as MapIcon, MapPinPlus, Mountain, MountainSnow, Rotate3d, Satellite } from 'lucide-react'
import type { PaddleMapLayer } from '../Tours/paddle/paddleMapLayer'
-import type { CSSProperties } from 'react'
+import { PisteKeyButton } from '../Tours/winter/PisteKey'
+import type { ComponentType, CSSProperties } from 'react'
import { useTranslation } from '../../i18n'
import { FerrataLineIcon } from '../Ferratas/FerrataGlyph'
import type { FerrataMapLayer } from '../Ferratas/useFerrataMapLayer'
@@ -193,17 +194,23 @@ function PlaceToolToggle({ tool }: { tool: MapPlaceTool }) {
)
}
-/** How each overlay the planner can offer is named and drawn on its switch. */
-const OVERLAY_LOOK: Record<string, { Icon: typeof Anchor; labelKey: string; downKey: string }> = {
+/** How an overlay the planner can offer is named and drawn on its switch. */
+interface OverlayLook {
+ Icon: typeof Anchor
+ labelKey: string
+ downKey: string
+ /** On its icon alone, named by its tooltip, so the row stays short beside a type's other switches. */
+ iconOnly?: boolean
+ /** The overlay's key, beside its switch while the layer shows. */
+ Key?: ComponentType
+}
+
+const OVERLAY_LOOK: Record<string, OverlayLook> = {
seamarks: { Icon: Anchor, labelKey: 'tours.map.seamarks', downKey: 'tours.map.seamarksDown' },
+ // SKI-01: a hike's row already holds four maps, the ferratas and 3D, so the pistes go by their icon.
+ pistes: { Icon: MountainSnow, labelKey: 'tours.map.pistes', downKey: 'tours.map.pistesDown', iconOnly: true, Key: PisteKeyButton },
}
-/**
- * The switch for a transparent overlay (the seamarks), the way the via
- * ferrata switch looks: on in the accent, and in the warning tone with a badge
- * once its source stopped answering, which the tooltip names. The map and the
- * planning go on without it.
- */
/** The warning mark on a switch whose source stopped answering; the tooltip says what it means. */
function DownBadge() {
return (
@@ -213,6 +220,13 @@ function DownBadge() {
)
}
+/**
+ * The switch for a transparent overlay (the seamarks, the pistes), the way the via
+ * ferrata switch looks: on in the accent, and in the warning tone with a badge
+ * once its source stopped answering, which the tooltip names. The map and the
+ * planning go on without it. An overlay with a key shows the key's button
+ * beside the switch while its tiles arrive.
+ */
function OverlayToggle({ overlay, compact }: { overlay: ToggleableRasterOverlay; compact: boolean }) {
const { t } = useTranslation()
const look = OVERLAY_LOOK[overlay.id]
@@ -234,10 +248,11 @@ function OverlayToggle({ overlay, compact }: { overlay: ToggleableRasterOverlay;
style={segmentStyle(on)}
>
<look.Icon size={15} strokeWidth={2} />
- {!compact && <span>{label}</span>}
+ {!compact && !look.iconOnly && <span>{label}</span>}
{down && <DownBadge />}
</button>
</Tooltip>
+ {look.Key && overlay.status === 'on' && <look.Key />}
<span role="status" aria-live="polite" className="sr-only">{down ? t(look.downKey) : ''}</span>
</>
)
diff --git a/client/src/components/Map/RasterOverlayLeaflet.tsx b/client/src/components/Map/RasterOverlayLeaflet.tsx
index 1ccfafcdb..b8c4fecbf 100644
--- a/client/src/components/Map/RasterOverlayLeaflet.tsx
+++ b/client/src/components/Map/RasterOverlayLeaflet.tsx
@@ -23,6 +23,8 @@ function RasterOverlaysLeaflet({ overlays }: { overlays?: readonly MapRasterOver
maxNativeZoom={overlay.maxZoom}
maxZoom={22}
zIndex={OVERLAY_Z_INDEX}
+ // The page's origin as the referer, which the overlays' operators ask for (OpenSnowMap names it).
+ referrerPolicy="strict-origin-when-cross-origin"
eventHandlers={{ tileerror: overlay.onTileError, tileload: overlay.onTileLoad }}
/>
))}
diff --git a/client/src/components/Tours/tourMapLayers.test.ts b/client/src/components/Tours/tourMapLayers.test.ts
index 5c7df1ed7..f0ea6d6ae 100644
--- a/client/src/components/Tours/tourMapLayers.test.ts
+++ b/client/src/components/Tours/tourMapLayers.test.ts
@@ -1,11 +1,11 @@
import { describe, expect, it } from 'vitest';
-import { baseLayerFor, tourMapLayersFor } from './tourMapLayers';
+import { baseLayerFor, PISTE_OVERLAY, tourMapLayersFor } from './tourMapLayers';
describe('tourMapLayersFor (MAP-01)', () => {
it('offers OpenHikingMap to a hike only while the admin allows it', () => {
expect(tourMapLayersFor('hike').bases).not.toContain('hiking');
expect(tourMapLayersFor('hike', { hikingMap: true }).bases).toEqual(['default', 'topo', 'hiking', 'satellite']);
- expect(tourMapLayersFor('hike', { hikingMap: true }).overlays).toEqual(['ferratas']);
+ expect(tourMapLayersFor('hike', { hikingMap: true }).overlays).toEqual(['ferratas', 'pistes']);
expect(tourMapLayersFor('kayak', { hikingMap: true }).bases).not.toContain('hiking');
expect(tourMapLayersFor(null, { hikingMap: true }).bases).not.toContain('hiking');
});
@@ -15,12 +15,27 @@ describe('tourMapLayersFor (MAP-01)', () => {
expect(baseLayerFor(tourMapLayersFor('hike'), 'hiking')).toBe('default');
});
- it('SKI-02: a ski track gets the standard map, topo and satellite, and no via ferratas', () => {
+ it('SKI-02: a ski track gets the standard map, topo and satellite, the pistes and no via ferratas', () => {
expect(tourMapLayersFor('ski')).toEqual({
bases: ['default', 'topo', 'satellite'],
defaultBase: 'default',
- overlays: [],
+ overlays: ['pistes'],
});
expect(baseLayerFor(tourMapLayersFor('ski'), 'hiking')).toBe('default');
});
+
+ it('SKI-01: the pistes are offered to a hike and a ski track, never to a bike tour, a run, a paddle tour or another type', () => {
+ expect(tourMapLayersFor('hike').overlays).toContain('pistes');
+ expect(tourMapLayersFor('ski').overlays).toContain('pistes');
+ for (const type of ['bike', 'run', 'kayak', 'walk', null] as const)
+ expect(tourMapLayersFor(type).overlays).not.toContain('pistes');
+ });
+
+ it("SKI-01: the piste layer is OpenSnowMap's overlay alone, from zoom 9 to 18, credited to OpenSnowMap and OpenStreetMap", () => {
+ expect(PISTE_OVERLAY.url).toBe('https://tiles.opensnowmap.org/pistes/{z}/{x}/{y}.png');
+ expect([PISTE_OVERLAY.minZoom, PISTE_OVERLAY.maxZoom]).toEqual([9, 18]);
+ expect(PISTE_OVERLAY.attribution).toContain('OpenSnowMap.org');
+ expect(PISTE_OVERLAY.attribution).toContain('CC BY-SA');
+ expect(PISTE_OVERLAY.attribution).toContain('OpenStreetMap');
+ });
});
diff --git a/client/src/components/Tours/tourMapLayers.ts b/client/src/components/Tours/tourMapLayers.ts
index bf6562f71..3cf0aae40 100644
--- a/client/src/components/Tours/tourMapLayers.ts
+++ b/client/src/components/Tours/tourMapLayers.ts
@@ -10,23 +10,27 @@ import type { TourBaseLayer } from '../Map/MapLayerSwitcher';
* laid over it and switched on its own; it is off until the user turns it on.
* Only sources TREK already ships or that a card cleared are listed: OpenTopoMap
* and the Esri imagery the planner had, OpenHikingMap (MAP-01), the via ferrata
- * layer (RC-10) and OpenSeaMap's seamarks (PAD-10).
+ * layer (RC-10), OpenSeaMap's seamarks (PAD-10) and OpenSnowMap's pistes (SKI-01).
*
* - Hike: the standard map first, as before; topo, OpenHikingMap (MAP-01, while the admin
- * allows it) and satellite beside it; via ferratas.
+ * allows it) and satellite beside it; via ferratas, and the pistes for winter hiking (SKI-01).
* - Bike (BIK-01): the standard map, topo for the climbs, CyclOSM (BIK-06, while the admin
* allows it) and satellite. No ferratas, a bike tour climbs none.
* - Run (RUN-01): the standard map, topo for the climbs and satellite. No ferratas, a run
* takes none.
- * - Ski (SKI-02): the standard map, topo for the slopes and satellite. No ferratas.
+ * - Ski (SKI-02): the standard map, topo for the slopes and satellite. No ferratas. The
+ * pistes as an overlay (SKI-01).
* - Paddle: the standard map, whose water reads clearly, and satellite. No topo and
* no ferratas, those are hiking maps. Seamarks as an overlay.
* - Any other type (switched off, or one this build does not plan): the standard map
* and satellite, no overlays.
*
+ * The planner offers the pistes with no tour open too, so a ski area can be looked at
+ * without any route (useTourStageLayers decides that, as it does for the ferratas).
+ *
* If an overlay fails, the base map and the planning go on; the switch says so.
*/
-type TourOverlayId = 'ferratas' | 'seamarks';
+type TourOverlayId = 'ferratas' | 'seamarks' | 'pistes';
export interface TourMapLayerSet {
bases: readonly TourBaseLayer[];
@@ -37,13 +41,17 @@ export interface TourMapLayerSet {
const HIKE: TourMapLayerSet = {
bases: ['default', 'topo', 'satellite'],
defaultBase: 'default',
- overlays: ['ferratas'],
+ overlays: ['ferratas', 'pistes'],
};
const HIKE_WITH_HIKING_MAP: TourMapLayerSet = { ...HIKE, bases: ['default', 'topo', 'hiking', 'satellite'] };
const BIKE: TourMapLayerSet = { bases: ['default', 'topo', 'satellite'], defaultBase: 'default', overlays: [] };
const BIKE_WITH_CYCLE_MAP: TourMapLayerSet = { ...BIKE, bases: ['default', 'topo', 'cycle', 'satellite'] };
const RUN: TourMapLayerSet = { bases: ['default', 'topo', 'satellite'], defaultBase: 'default', overlays: [] };
-const SKI: TourMapLayerSet = { bases: ['default', 'topo', 'satellite'], defaultBase: 'default', overlays: [] };
+const SKI: TourMapLayerSet = {
+ bases: ['default', 'topo', 'satellite'],
+ defaultBase: 'default',
+ overlays: ['pistes'],
+};
const PADDLE: TourMapLayerSet = { bases: ['default', 'satellite'], defaultBase: 'default', overlays: ['seamarks'] };
const OTHER: TourMapLayerSet = { bases: ['default', 'satellite'], defaultBase: 'default', overlays: [] };
@@ -80,3 +88,26 @@ export const SEAMARK_OVERLAY = {
minZoom: 6,
maxZoom: 18,
} as const;
+
+/**
+ * SKI-01: OpenSnowMap's transparent piste layer (pistes, cross-country trails,
+ * winter walking trails, toboggan runs and lifts as mapped in OpenStreetMap),
+ * only the overlay and never their relief or base maps, which are not cleared
+ * for use elsewhere. Tiles CC-BY-SA, data ODbL, both credited in the map's
+ * attribution. Their terms forbid bulk downloads: like every overlay it loads
+ * only the tiles in view, the tile prefetch and the Service Worker never store
+ * it, and the browser sends the page's origin as the referer, which the app's
+ * referrer policy (strict-origin-when-cross-origin) keeps. Checked on
+ * 20.10.2026: every tile answers 200 with a PNG, an empty one transparent, CORS
+ * open; nothing is drawn below zoom 9, and from zoom 19 the server answers a
+ * "No tile here" picture instead of a transparent tile, so the layer stops at
+ * 18 and the maps enlarge that zoom's tiles further in.
+ */
+export const PISTE_OVERLAY = {
+ id: 'pistes',
+ url: 'https://tiles.opensnowmap.org/pistes/{z}/{x}/{y}.png',
+ attribution:
+ 'Pistes &copy; <a href="https://www.opensnowmap.org">OpenSnowMap.org</a> (<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>), data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
+ minZoom: 9,
+ maxZoom: 18,
+} as const;
diff --git a/client/src/components/Tours/winter/PisteKey.test.tsx b/client/src/components/Tours/winter/PisteKey.test.tsx
new file mode 100644
index 000000000..9ce50a875
--- /dev/null
+++ b/client/src/components/Tours/winter/PisteKey.test.tsx
@@ -0,0 +1,80 @@
+// FE-TOUR-PISTE-KEY-001 to FE-TOUR-PISTE-KEY-005
+import userEvent from '@testing-library/user-event';
+import { describe, expect, it } from 'vitest';
+import { fireEvent, render, screen, within } from '../../../../tests/helpers/render';
+import { PisteKeyButton } from './PisteKey';
+
+const trigger = () => screen.getByRole('button', { name: 'Piste key' });
+const key = () => screen.queryByRole('group', { name: 'Piste key' });
+
+describe('PisteKeyButton (SKI-01)', () => {
+ it('FE-TOUR-PISTE-KEY-001: the button carries the grade colours as its badge and opens nothing on its own', () => {
+ render(<PisteKeyButton />);
+ expect(trigger()).toHaveAttribute('aria-expanded', 'false');
+ expect(trigger().querySelectorAll('span[style]')).toHaveLength(4);
+ expect(key()).toBeNull();
+ });
+
+ it('FE-TOUR-PISTE-KEY-002: opened, the key names every downhill grade and the other winter ways the layer draws', async () => {
+ render(<PisteKeyButton />);
+ await userEvent.click(trigger());
+ const panel = key();
+ expect(panel).toBeInTheDocument();
+ expect(trigger()).toHaveAttribute('aria-expanded', 'true');
+ expect(trigger()).toHaveAttribute('aria-controls', panel?.id);
+ expect(within(panel as HTMLElement).getByText('Downhill runs by difficulty')).toBeInTheDocument();
+ const grades = within(screen.getByTestId('piste-key-grades')).getAllByRole('listitem');
+ expect(grades.map((grade) => grade.textContent)).toEqual([
+ 'Novice',
+ 'Easy',
+ 'Intermediate',
+ 'Advanced',
+ 'Expert',
+ 'Freeride',
+ ]);
+ const ways = within(screen.getByTestId('piste-key-ways')).getAllByRole('listitem');
+ expect(ways.map((way) => way.textContent)).toEqual([
+ 'Cross-country trails',
+ 'Winter and snowshoe trails',
+ 'Toboggan runs',
+ 'Lifts and cable cars',
+ ]);
+ // Winter walking trails are dotted, as on the map; the other trails are lines.
+ expect(ways[1]?.querySelectorAll('span[style]')).toHaveLength(3);
+ expect(ways[0]?.querySelectorAll('span[style]')).toHaveLength(1);
+ expect(within(panel as HTMLElement).getByText('OpenSnowMap')).toBeInTheDocument();
+ });
+
+ it('FE-TOUR-PISTE-KEY-003: the key says the colours are mapped data and no report on opening, grooming, snow or avalanches', async () => {
+ render(<PisteKeyButton />);
+ await userEvent.click(trigger());
+ expect(
+ screen.getByText(
+ 'Mapped data, not a live report: it says nothing about what is open or groomed, the snow or avalanches.'
+ )
+ ).toBeInTheDocument();
+ });
+
+ it('FE-TOUR-PISTE-KEY-004: the full key opens at OpenSnowMap in a new tab and takes the focus when the key opens', async () => {
+ render(<PisteKeyButton />);
+ await userEvent.click(trigger());
+ const link = screen.getByRole('link', { name: 'Full key at OpenSnowMap' });
+ expect(link).toHaveAttribute('href', 'https://www.opensnowmap.org/');
+ expect(link).toHaveAttribute('target', '_blank');
+ expect(link).toHaveAttribute('rel', 'noopener noreferrer');
+ expect(link).toHaveFocus();
+ });
+
+ it('FE-TOUR-PISTE-KEY-005: Escape and a click beside it close the key and leave the button', async () => {
+ render(<PisteKeyButton />);
+ await userEvent.click(trigger());
+ await userEvent.keyboard('{Escape}');
+ expect(key()).toBeNull();
+ expect(trigger()).toHaveFocus();
+
+ await userEvent.click(trigger());
+ expect(key()).toBeInTheDocument();
+ fireEvent.mouseDown(document.body);
+ expect(key()).toBeNull();
+ });
+});
diff --git a/client/src/components/Tours/winter/PisteKey.tsx b/client/src/components/Tours/winter/PisteKey.tsx
new file mode 100644
index 000000000..862c3daf5
--- /dev/null
+++ b/client/src/components/Tours/winter/PisteKey.tsx
@@ -0,0 +1,173 @@
+import { CableCar, ExternalLink, Info } from 'lucide-react';
+import { useEffect } from 'react';
+import { useTranslation } from '../../../i18n';
+import { SoftPill } from '../../Planner/planParts';
+import { fs } from '../../shared/DialogShell';
+import { LABEL, PopoverListPanel } from '../../shared/dialogParts';
+import { Tooltip } from '../../shared/Tooltip';
+import { usePopoverList } from '../../shared/usePopoverList';
+import { TourNotice } from '../tourParts';
+
+/**
+ * SKI-01: OpenSnowMap's own paint, read off its map key (opensnowmap.org,
+ * pics/mapkey_wide.png) on 20.10.2026. The key repeats what the tiles draw, so
+ * these keep their colours in every theme, as the map under them does.
+ */
+const PAINT = {
+ novice: '#41d83e',
+ easy: '#2949ca',
+ intermediate: '#d51e1e',
+ advanced: '#313131',
+ expert: '#f37300',
+ freeride: '#f3ce00',
+ nordic: '#3960ff',
+ winterHike: '#f07bbd',
+ sled: '#8bff44',
+} as const;
+
+type Paint = keyof typeof PAINT;
+
+/** The grades a downhill run is coloured by, as OpenStreetMap's piste:difficulty names them. */
+const DOWNHILL: readonly { paint: Paint; labelKey: string }[] = [
+ { paint: 'novice', labelKey: 'tours.map.pisteGrade.novice' },
+ { paint: 'easy', labelKey: 'tours.map.pisteGrade.easy' },
+ { paint: 'intermediate', labelKey: 'tours.map.pisteGrade.intermediate' },
+ { paint: 'advanced', labelKey: 'tours.map.pisteGrade.advanced' },
+ { paint: 'expert', labelKey: 'tours.map.pisteGrade.expert' },
+ { paint: 'freeride', labelKey: 'tours.map.pisteGrade.freeride' },
+];
+
+/** The other winter ways the layer draws, each in its one colour; winter walking trails dotted, as on the map. */
+const WAYS: readonly { paint: Paint; labelKey: string; dotted?: boolean }[] = [
+ { paint: 'nordic', labelKey: 'tours.map.pisteNordic' },
+ { paint: 'winterHike', labelKey: 'tours.map.pisteWinterHike', dotted: true },
+ { paint: 'sled', labelKey: 'tours.map.pisteSled' },
+];
+
+/** The four grades the key's button shows as its badge, the colours a skier knows first. */
+const BADGE_GRADES: readonly Paint[] = ['novice', 'easy', 'intermediate', 'advanced'];
+
+/** Where the full key lives: OpenSnowMap's own map, whose menu holds it with the rarer ways and marks. */
+const FULL_KEY_URL = 'https://www.opensnowmap.org/';
+
+/** A downhill run as the tiles draw it: a pale band edged in its grade's colour, readable on light and dark alike. */
+function RunBand({ colour }: { colour: string }) {
+ return (
+ <span
+ aria-hidden
+ className="h-2.5 w-6 flex-none rounded-[3px] border-[1.5px]"
+ style={{ borderColor: colour, background: `color-mix(in srgb, ${colour} 22%, white)` }}
+ />
+ );
+}
+
+/** A trail as a line in its colour, or as a row of dots where the map dots it. */
+function WayLine({ colour, dotted = false }: { colour: string; dotted?: boolean }) {
+ if (!dotted) return <span aria-hidden className="h-[3px] w-6 flex-none rounded-full" style={{ background: colour }} />;
+ return (
+ <span aria-hidden className="flex w-6 flex-none items-center justify-between px-px">
+ {[0, 1, 2].map((dot) => (
+ <span key={dot} className="h-[5px] w-[5px] rounded-full" style={{ background: colour }} />
+ ))}
+ </span>
+ );
+}
+
+const ROW = 'flex min-w-0 items-center gap-2 text-content-secondary';
+
+/** The key's content: the downhill grades, the other ways, what the colours do not say, and where the full key is. */
+function PisteKeyBody() {
+ const { t } = useTranslation();
+ return (
+ <div className="flex flex-col gap-3 p-1.5">
+ <div className="flex items-center justify-between gap-2">
+ <span className="font-semibold text-content" style={fs(12.5, 'body')}>
+ {t('tours.map.pisteKey')}
+ </span>
+ <SoftPill>OpenSnowMap</SoftPill>
+ </div>
+ <div>
+ <span className={LABEL}>{t('tours.map.pisteDownhill')}</span>
+ <ul className="grid grid-cols-2 gap-x-3 gap-y-1.5" data-testid="piste-key-grades">
+ {DOWNHILL.map(({ paint, labelKey }) => (
+ <li key={paint} className={ROW} style={fs(11.5, 'body')}>
+ <RunBand colour={PAINT[paint]} />
+ <span className="truncate">{t(labelKey)}</span>
+ </li>
+ ))}
+ </ul>
+ </div>
+ <ul className="flex flex-col gap-1.5 border-t border-edge-faint pt-3" data-testid="piste-key-ways">
+ {WAYS.map(({ paint, labelKey, dotted }) => (
+ <li key={paint} className={ROW} style={fs(11.5, 'body')}>
+ <WayLine colour={PAINT[paint]} dotted={dotted} />
+ <span className="truncate">{t(labelKey)}</span>
+ </li>
+ ))}
+ <li className={ROW} style={fs(11.5, 'body')}>
+ <span aria-hidden className="flex w-6 flex-none justify-center text-content">
+ <CableCar size={14} strokeWidth={2} />
+ </span>
+ <span className="truncate">{t('tours.map.pisteLift')}</span>
+ </li>
+ </ul>
+ <TourNotice icon={<Info size={12} strokeWidth={2} />}>{t('tours.map.pisteStatic')}</TourNotice>
+ <a
+ href={FULL_KEY_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="inline-flex items-center gap-1 self-start font-semibold text-accent-on hover:underline"
+ style={fs(11.5, 'body')}
+ >
+ {t('tours.map.pisteFullKey')}
+ <ExternalLink size={11} strokeWidth={2.2} aria-hidden />
+ </a>
+ </div>
+ );
+}
+
+/**
+ * SKI-01: the piste layer's key, opened from a button beside its switch while
+ * the layer shows. The button carries the grade colours as a small badge, so
+ * it reads as the key at a glance; the key itself opens above the map in the
+ * popover look and closes on Escape or a click beside it, the map untouched.
+ */
+export function PisteKeyButton() {
+ const { t } = useTranslation();
+ const list = usePopoverList(-1, { estimatedHeight: 380 });
+ const { open, box, toggle, triggerRef, menuRef, listId } = list;
+ const label = t('tours.map.pisteKey');
+ const shown = open && !!box;
+ // No list to walk here, only the link: opening moves the focus onto it, so Tab and Escape act as in any popover.
+ useEffect(() => {
+ if (shown) menuRef.current?.querySelector('a')?.focus({ preventScroll: true });
+ }, [shown, menuRef]);
+ return (
+ <>
+ <Tooltip label={label} placement="top" disabled={open}>
+ <button
+ ref={triggerRef}
+ type="button"
+ onClick={toggle}
+ aria-label={label}
+ aria-expanded={open}
+ aria-controls={open ? listId : undefined}
+ data-testid="piste-key-button"
+ className={`grid h-[34px] w-[34px] flex-none place-items-center rounded-full transition-colors hover:bg-surface-hover ${open ? 'bg-surface-hover' : ''}`}
+ >
+ <span
+ aria-hidden
+ className="grid grid-cols-2 gap-[2px] rounded-[5px] bg-surface-card p-[3px] shadow-sm ring-1 ring-edge"
+ >
+ {BADGE_GRADES.map((paint) => (
+ <span key={paint} className="h-[5px] w-[5px] rounded-full" style={{ background: PAINT[paint] }} />
+ ))}
+ </span>
+ </button>
+ </Tooltip>
+ <PopoverListPanel list={list} label={label} className="w-[272px]">
+ <PisteKeyBody />
+ </PopoverListPanel>
+ </>
+ );
+}
diff --git a/client/src/pages/tripPlanner/TourPlannerMapStage.test.tsx b/client/src/pages/tripPlanner/TourPlannerMapStage.test.tsx
index a336b35e6..519c1b2aa 100644
--- a/client/src/pages/tripPlanner/TourPlannerMapStage.test.tsx
+++ b/client/src/pages/tripPlanner/TourPlannerMapStage.test.tsx
@@ -1,4 +1,4 @@
-// FE-PAGE-TOURSTAGE-001 to FE-PAGE-TOURSTAGE-018
+// FE-PAGE-TOURSTAGE-001 to FE-PAGE-TOURSTAGE-023
import type { Ferrata, PaddleFeature } from '@trek/shared';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { act, fireEvent, render, screen, waitFor } from '../../../tests/helpers/render';
@@ -571,17 +571,19 @@ describe('TourPlannerMapStage', () => {
describe('map layers per tour type (P2B-06/07, PAD-04, PAD-10)', () => {
const flat = () => stage.flatMap.props as MapViewProps;
- it('a hike keeps the standard map, topo and satellite and the via ferrata layer, and no seamarks', () => {
+ const overlayStates = () => flat().tourLayers?.overlays?.map((overlay) => [overlay.id, overlay.status]);
+
+ it('a hike keeps the standard map, topo and satellite and the via ferrata layer, the pistes off, and no seamarks', () => {
renderStage(planner('new-draft'));
expect(flat().tourLayers?.bases).toEqual(['default', 'topo', 'satellite']);
expect(flat().ferrataLayer).toBeDefined();
- expect(flat().tourLayers?.overlays).toEqual([]);
+ expect(overlayStates()).toEqual([['pistes', 'off']]);
});
- it('with no tour open there is no via ferrata layer, as there are no seamarks', () => {
+ it('with no tour open there is no via ferrata layer and no seamarks, but the pistes are offered (SKI-01)', () => {
renderStage(planner('neutral'));
expect(flat().ferrataLayer).toBeUndefined();
- expect(flat().tourLayers?.overlays).toEqual([]);
+ expect(overlayStates()).toEqual([['pistes', 'off']]);
});
it('a paddle tour offers the standard map and satellite, seamarks off, and neither topo nor ferratas', () => {
@@ -590,9 +592,7 @@ describe('TourPlannerMapStage', () => {
// Topo chosen for a hike falls back to the paddle tour's own default, without touching the choice.
expect(flat().viewBaseLayer).toBe('default');
expect(flat().ferrataLayer).toBeUndefined();
- expect(flat().tourLayers?.overlays?.map((overlay) => [overlay.id, overlay.status])).toEqual([
- ['seamarks', 'off'],
- ]);
+ expect(overlayStates()).toEqual([['seamarks', 'off']]);
});
it('an imported paddle tour is shown with the paddle maps, a bike tour and a run with their own, a type nobody plans with the standard set', () => {
@@ -646,5 +646,59 @@ describe('TourPlannerMapStage', () => {
act(() => overlay()?.onToggle());
expect(overlay()).toMatchObject({ status: 'off', active: false });
});
+
+ it('FE-PAGE-TOURSTAGE-021: the pistes switch on over the map with no tour open and stay on when a hike opens (SKI-01)', () => {
+ function NeutralStage({ mode }: { mode: 'neutral' | 'new-draft' }) {
+ const view = useTourMapView();
+ return <TourPlannerMapStage {...stageProps(planner(mode, view))} />;
+ }
+ const { rerender } = render(<NeutralStage mode="neutral" />);
+ const pistes = () => flat().tourLayers?.overlays?.find((overlay) => overlay.id === 'pistes');
+ act(() => pistes()?.onToggle());
+ expect(pistes()).toMatchObject({
+ status: 'on',
+ active: true,
+ url: 'https://tiles.opensnowmap.org/pistes/{z}/{x}/{y}.png',
+ minZoom: 9,
+ maxZoom: 18,
+ });
+ expect(pistes()?.attribution).toContain('OpenSnowMap');
+ expect(pistes()?.attribution).toContain('OpenStreetMap');
+ // The choice is the map view's, so it outlasts the switch from no tour to a hike.
+ rerender(<NeutralStage mode="new-draft" />);
+ expect(pistes()?.status).toBe('on');
+ });
+
+ it('FE-PAGE-TOURSTAGE-022: switching the pistes changes no point and no step, and a source that stopped answering keeps the map (SKI-01)', () => {
+ const tourPlanner = planner('edit-saved', { mapOverlays: new Set(['pistes']) });
+ renderStage(tourPlanner);
+ const pistes = () => flat().tourLayers?.overlays?.find((overlay) => overlay.id === 'pistes');
+ expect(pistes()?.status).toBe('on');
+ act(() => pistes()?.onToggle());
+ expect(tourPlanner.toggleMapOverlay).toHaveBeenCalledWith('pistes');
+ act(() => {
+ for (let i = 0; i < 4; i += 1) pistes()?.onTileError();
+ });
+ expect(pistes()?.status).toBe('down');
+ // The points and the base map stay what they were, and the planner was asked for nothing but the switch.
+ expect(flat().plannerWaypoints).toHaveLength(1);
+ expect(flat().viewBaseLayer).toBe('default');
+ expect(tourPlanner.addWaypoint).not.toHaveBeenCalled();
+ expect(tourPlanner.setWaypointPosition).not.toHaveBeenCalled();
+ expect(tourPlanner.undo).not.toHaveBeenCalled();
+ });
+
+ it('FE-PAGE-TOURSTAGE-023: an imported ski track offers the pistes; a bike tour, a run and a paddle tour do not (SKI-01)', () => {
+ const viewed = (tour: Record<string, unknown>) =>
+ planner('view-gpx', { mode: { type: 'view-gpx', placeId: 9, tour: { place_id: 9, ...tour } } });
+ const ski = renderStage(viewed({ tour_type: 'ski', ski_discipline: 'alpine' }));
+ expect(overlayStates()).toEqual([['pistes', 'off']]);
+ ski.unmount();
+ for (const tourType of ['bike', 'run', 'kayak']) {
+ const other = renderStage(planner('new-draft', { tourType }));
+ expect(flat().tourLayers?.overlays?.some((overlay) => overlay.id === 'pistes')).toBe(false);
+ other.unmount();
+ }
+ });
});
});
diff --git a/client/src/pages/tripPlanner/useTourStageLayers.test.ts b/client/src/pages/tripPlanner/useTourStageLayers.test.ts
index 5d23f376e..7ae482158 100644
--- a/client/src/pages/tripPlanner/useTourStageLayers.test.ts
+++ b/client/src/pages/tripPlanner/useTourStageLayers.test.ts
@@ -63,3 +63,29 @@ describe('useTourStageLayers: OpenHikingMap (MAP-01)', () => {
expect(basesOf(planner({ type: 'new-draft' }, 'bike', 'cycle')).tourLayers.bases).not.toContain('cycle');
});
});
+
+describe('useTourStageLayers: the pistes (SKI-01)', () => {
+ const pistesOf = (p: Planner) => basesOf(p).tourLayers.overlays.find((overlay) => overlay.id === 'pistes');
+
+ it('offers them with no tour open, for a hike and for an imported ski track, off until switched on', () => {
+ const ski = { type: 'view-gpx', placeId: 9, tour: { place_id: 9, tour_type: 'ski' } as TourListItem } as const;
+ for (const mode of [{ type: 'neutral' }, { type: 'new-draft' }, ski] as const) {
+ expect(pistesOf(planner(mode, 'hike', 'default'))).toMatchObject({ status: 'off', active: false });
+ }
+ // With no tour open they come even while the last type chosen was a paddle tour.
+ expect(pistesOf(planner({ type: 'neutral' }, 'kayak', 'default'))).toBeDefined();
+ });
+
+ it('not for a bike tour, a run or a paddle tour that is open', () => {
+ for (const tourType of ['bike', 'run', 'kayak'] as const)
+ expect(pistesOf(planner({ type: 'new-draft' }, tourType, 'default'))).toBeUndefined();
+ });
+
+ it('shows them on while the planner keeps them on, beside the seamarks of a paddle tour with none open', () => {
+ const p = { ...planner({ type: 'neutral' }, 'kayak', 'default'), mapOverlays: new Set(['pistes']) };
+ expect(basesOf(p).tourLayers.overlays.map((overlay) => [overlay.id, overlay.status])).toEqual([
+ ['seamarks', 'off'],
+ ['pistes', 'on'],
+ ]);
+ });
+});
diff --git a/client/src/pages/tripPlanner/useTourStageLayers.ts b/client/src/pages/tripPlanner/useTourStageLayers.ts
index b2bdadfda..a87617f00 100644
--- a/client/src/pages/tripPlanner/useTourStageLayers.ts
+++ b/client/src/pages/tripPlanner/useTourStageLayers.ts
@@ -4,7 +4,7 @@ import type { useFerrataMapLayer } from '../../components/Ferratas/useFerrataMap
import { paddleMapItems, selectedPaddleKey } from '../../components/Tours/paddle/paddleMapLayer';
import { usePaddlePaint } from '../../components/Tours/paddle/paddlePaint';
import type { TourPlannerController } from '../../components/Tours/planner/useTourPlanner';
-import { baseLayerFor, SEAMARK_OVERLAY, tourMapLayersFor } from '../../components/Tours/tourMapLayers';
+import { baseLayerFor, PISTE_OVERLAY, SEAMARK_OVERLAY, tourMapLayersFor } from '../../components/Tours/tourMapLayers';
import { useBaseMapHealth, useTourRasterOverlay } from '../../components/Tours/useTourRasterOverlay';
import { useAddonStore } from '../../store/addonStore';
import { selectPaddleObstacle, usePaddleObstacleStore } from '../../store/paddleObstacleStore';
@@ -20,6 +20,7 @@ type FerrataLayerState = ReturnType<typeof useFerrataMapLayer>;
* neither draws nor warns about ferratas, even if the layer was switched on before; a base layer it
* does not offer falls back to its default without changing the choice kept,
* which is also what an install whose admin withdrew OpenHikingMap sees.
+ * The pistes (SKI-01) are offered with no tour open too, whatever type was chosen last.
*/
export function useTourStageLayers(
tourPlanner: Pick<TourPlannerController, 'mode' | 'tourType' | 'mapBaseLayer' | 'mapOverlays' | 'toggleMapOverlay'>,
@@ -41,13 +42,28 @@ export function useTourStageLayers(
// With no tour open nothing is a hike yet: the ferratas wait for one, as the seamarks wait for a paddle tour.
const offersFerratas = mode.type !== 'neutral' && layerSet.overlays.includes('ferratas');
const { toggleMapOverlay } = tourPlanner;
+ const offersSeamarks = layerSet.overlays.includes('seamarks');
const toggleSeamarks = useCallback(() => toggleMapOverlay(SEAMARK_OVERLAY.id), [toggleMapOverlay]);
const seamarks = useTourRasterOverlay(
SEAMARK_OVERLAY,
- layerSet.overlays.includes('seamarks'),
+ offersSeamarks,
tourPlanner.mapOverlays.has(SEAMARK_OVERLAY.id),
toggleSeamarks
);
+ // SKI-01: the pistes for the types they serve, and with no tour open, so a ski area can be
+ // looked at without any route. Switching them never touches the tour: the switch is the map view's.
+ const offersPistes = !tourOpen || layerSet.overlays.includes('pistes');
+ const togglePistes = useCallback(() => toggleMapOverlay(PISTE_OVERLAY.id), [toggleMapOverlay]);
+ const pistes = useTourRasterOverlay(
+ PISTE_OVERLAY,
+ offersPistes,
+ tourPlanner.mapOverlays.has(PISTE_OVERLAY.id),
+ togglePistes
+ );
+ const overlays = useMemo(
+ () => [...(offersSeamarks ? [seamarks] : []), ...(offersPistes ? [pistes] : [])],
+ [offersSeamarks, seamarks, offersPistes, pistes]
+ );
// PAD-05B: the obstacles the sync hook read around the paddle tour, only while one is open.
const { features, related, selectedRef } = usePaddleObstacleStore(
useShallow((state) => ({ features: state.features, related: state.related, selectedRef: state.selectedRef }))
@@ -69,11 +85,11 @@ export function useTourStageLayers(
const tourLayers = useMemo(
() => ({
bases: layerSet.bases,
- overlays: layerSet.overlays.includes('seamarks') ? [seamarks] : [],
+ overlays,
paddle,
baseHealth,
}),
- [layerSet, seamarks, paddle, baseHealth]
+ [layerSet, overlays, paddle, baseHealth]
);
return {
baseLayer,
diff --git a/server/src/middleware/globalMiddleware.ts b/server/src/middleware/globalMiddleware.ts
index 96d4c6454..4190f8104 100644
--- a/server/src/middleware/globalMiddleware.ts
+++ b/server/src/middleware/globalMiddleware.ts
@@ -325,6 +325,9 @@ export function applyGlobalMiddleware(
// Tours planner (PAD-10). Leaflet loads it as an <img>; the GL map reads it
// through fetch and needs it here.
'https://tiles.openseamap.org',
+ // OpenSnowMap's transparent piste layer (SKI-01), offered in the Tours planner with
+ // no tour open, for a hike and for a ski track; the GL map reads it through fetch.
+ 'https://tiles.opensnowmap.org',
// OpenHikingMap, the hiking base map of the Tours planner (MAP-01), loaded only
// while a user shows it and the admin allows it; GL reads it through fetch.
'https://tile.openmaps.fr',
diff --git a/server/tests/unit/middleware/globalMiddleware.csp.test.ts b/server/tests/unit/middleware/globalMiddleware.csp.test.ts
index 536fb87ab..4dd6a3995 100644
--- a/server/tests/unit/middleware/globalMiddleware.csp.test.ts
+++ b/server/tests/unit/middleware/globalMiddleware.csp.test.ts
@@ -56,6 +56,10 @@ describe('global CSP: the other shipped raster presets (#2180)', () => {
expect(await connectSrcSources()).toContain('https://tiles.openseamap.org');
});
+ it('allows the OpenSnowMap piste host the Tours planner can lay over its map (SKI-01)', async () => {
+ expect(await connectSrcSources()).toContain('https://tiles.opensnowmap.org');
+ });
+
it('allows the OpenHikingMap host the Tours planner offers as a hiking base map (MAP-01)', async () => {
expect(await connectSrcSources()).toContain('https://tile.openmaps.fr');
});
diff --git a/shared/src/i18n/ar/tours.ts b/shared/src/i18n/ar/tours.ts
index de844aeac..ba584ee21 100644
--- a/shared/src/i18n/ar/tours.ts
+++ b/shared/src/i18n/ar/tours.ts
@@ -697,6 +697,23 @@ const tours: TranslationStrings = {
'tours.planner.freeLegInfo': 'يصل TREK هاتين النقطتين بخط مستقيم. لم يخطط أي محرك مسارات لهذا المقطع ولم يتحقق منه.',
'tours.map.seamarks': 'العلامات البحرية',
'tours.map.seamarksDown': 'لا يتم تحميل العلامات البحرية. الخريطة ومسارك يعملان كالمعتاد.',
+ 'tours.map.pistes': 'المنحدرات ومسارات التزلج الريفي والمصاعد',
+ 'tours.map.pistesDown': 'لا يتم تحميل المنحدرات. الخريطة ومسارك يعملان كالمعتاد.',
+ 'tours.map.pisteKey': 'مفتاح المنحدرات',
+ 'tours.map.pisteDownhill': 'منحدرات الهبوط حسب الصعوبة',
+ 'tours.map.pisteGrade.novice': 'مبتدئ',
+ 'tours.map.pisteGrade.easy': 'سهل',
+ 'tours.map.pisteGrade.intermediate': 'متوسط',
+ 'tours.map.pisteGrade.advanced': 'صعب',
+ 'tours.map.pisteGrade.expert': 'خبير',
+ 'tours.map.pisteGrade.freeride': 'خارج المسارات',
+ 'tours.map.pisteNordic': 'مسارات التزلج الريفي',
+ 'tours.map.pisteWinterHike': 'مسارات المشي الشتوي وأحذية الثلج',
+ 'tours.map.pisteSled': 'مسارات الزلاجات',
+ 'tours.map.pisteLift': 'المصاعد والتلفريك',
+ 'tours.map.pisteStatic':
+ 'بيانات خريطة وليست تقريرًا حيًا: لا تقول شيئًا عما هو مفتوح أو مُجهّز، ولا عن الثلج أو الانهيارات الثلجية.',
+ 'tours.map.pisteFullKey': 'المفتاح الكامل على OpenSnowMap',
'tours.import.previewTitle': 'معاينة GPX',
'tours.import.previewHint': 'لم يُحفظ شيء بعد. تحقق من المسار ثم استورد.',
'tours.import.previewFiles': '{count} ملف',
diff --git a/shared/src/i18n/az/tours.ts b/shared/src/i18n/az/tours.ts
index c6b13938c..c3fe118fd 100644
--- a/shared/src/i18n/az/tours.ts
+++ b/shared/src/i18n/az/tours.ts
@@ -700,6 +700,23 @@ const tours: TranslationStrings = {
'TREK bu iki nöqtəni düz xətlə birləşdirir. Heç bir marşrutlaşdırıcı bu hissəni planlaşdırmayıb və yoxlamayıb.',
'tours.map.seamarks': 'Dəniz nişanları',
'tours.map.seamarksDown': 'Dəniz nişanları yüklənmir. Xəritə və marşrutun işləməyə davam edir.',
+ 'tours.map.pistes': 'Trasslar, xizək qaçışı yolları və liftlər',
+ 'tours.map.pistesDown': 'Trasslar yüklənmir. Xəritə və marşrutun işləməyə davam edir.',
+ 'tours.map.pisteKey': 'Trass legendası',
+ 'tours.map.pisteDownhill': 'Enmə trassları çətinliyə görə',
+ 'tours.map.pisteGrade.novice': 'Başlanğıc',
+ 'tours.map.pisteGrade.easy': 'Asan',
+ 'tours.map.pisteGrade.intermediate': 'Orta',
+ 'tours.map.pisteGrade.advanced': 'Çətin',
+ 'tours.map.pisteGrade.expert': 'Ekspert',
+ 'tours.map.pisteGrade.freeride': 'Trassdan kənar',
+ 'tours.map.pisteNordic': 'Xizək qaçışı yolları',
+ 'tours.map.pisteWinterHike': 'Qış və qar ayaqqabısı cığırları',
+ 'tours.map.pisteSled': 'Kirşə yolları',
+ 'tours.map.pisteLift': 'Liftlər və kanat yolları',
+ 'tours.map.pisteStatic':
+ 'Xəritə məlumatıdır, canlı hesabat deyil: nəyin açıq və ya hazırlanmış olduğu, qar və uçqunlar barədə heç nə demir.',
+ 'tours.map.pisteFullKey': 'Tam legenda OpenSnowMap-də',
'tours.import.previewTitle': 'GPX önbaxışı',
'tours.import.previewHint': 'Hələ heç nə yadda saxlanmayıb. Marşrutu yoxla, sonra idxal et.',
'tours.import.previewFiles': '{count} fayl',
diff --git a/shared/src/i18n/br/tours.ts b/shared/src/i18n/br/tours.ts
index d9bfbb56a..c119e8206 100644
--- a/shared/src/i18n/br/tours.ts
+++ b/shared/src/i18n/br/tours.ts
@@ -705,6 +705,23 @@ const tours: TranslationStrings = {
'O TREK liga estes dois pontos com uma linha reta. Nenhum roteador planejou ou conferiu este trecho.',
'tours.map.seamarks': 'Sinais náuticos',
'tours.map.seamarksDown': 'Os sinais náuticos não estão carregando. O mapa e sua rota continuam funcionando.',
+ 'tours.map.pistes': 'Pistas, trilhas de esqui de fundo e teleféricos',
+ 'tours.map.pistesDown': 'As pistas não estão carregando. O mapa e sua rota continuam funcionando.',
+ 'tours.map.pisteKey': 'Legenda das pistas',
+ 'tours.map.pisteDownhill': 'Pistas de descida por dificuldade',
+ 'tours.map.pisteGrade.novice': 'Iniciante',
+ 'tours.map.pisteGrade.easy': 'Fácil',
+ 'tours.map.pisteGrade.intermediate': 'Intermediária',
+ 'tours.map.pisteGrade.advanced': 'Difícil',
+ 'tours.map.pisteGrade.expert': 'Especialista',
+ 'tours.map.pisteGrade.freeride': 'Fora de pista',
+ 'tours.map.pisteNordic': 'Trilhas de esqui de fundo',
+ 'tours.map.pisteWinterHike': 'Trilhas de inverno e de raquetes',
+ 'tours.map.pisteSled': 'Pistas de trenó',
+ 'tours.map.pisteLift': 'Teleféricos e elevadores',
+ 'tours.map.pisteStatic':
+ 'Dados do mapa, não um boletim: nada sobre o que está aberto ou preparado, neve ou avalanches.',
+ 'tours.map.pisteFullKey': 'Legenda completa no OpenSnowMap',
'tours.import.previewTitle': 'Prévia do GPX',
'tours.import.previewHint': 'Nada foi salvo ainda. Confira o percurso e depois importe.',
'tours.import.previewFiles': '{count} arquivos',
diff --git a/shared/src/i18n/ca/tours.ts b/shared/src/i18n/ca/tours.ts
index a1f3d40d1..5bcdd47ff 100644
--- a/shared/src/i18n/ca/tours.ts
+++ b/shared/src/i18n/ca/tours.ts
@@ -706,6 +706,22 @@ const tours: TranslationStrings = {
'TREK uneix aquests dos punts amb una línia recta. Cap enrutador no ha planificat ni comprovat aquest tram.',
'tours.map.seamarks': 'Senyals nàutics',
'tours.map.seamarksDown': 'Els senyals nàutics no es carreguen. El mapa i la ruta continuen funcionant.',
+ 'tours.map.pistes': 'Pistes, circuits de fons i remuntadors',
+ 'tours.map.pistesDown': 'Les pistes no es carreguen. El mapa i la ruta continuen funcionant.',
+ 'tours.map.pisteKey': 'Llegenda de pistes',
+ 'tours.map.pisteDownhill': 'Pistes de descens per dificultat',
+ 'tours.map.pisteGrade.novice': 'Principiant',
+ 'tours.map.pisteGrade.easy': 'Fàcil',
+ 'tours.map.pisteGrade.intermediate': 'Intermèdia',
+ 'tours.map.pisteGrade.advanced': 'Difícil',
+ 'tours.map.pisteGrade.expert': 'Expert', // same-as-en
+ 'tours.map.pisteGrade.freeride': 'Fora pista',
+ 'tours.map.pisteNordic': 'Circuits d’esquí de fons',
+ 'tours.map.pisteWinterHike': 'Senders d’hivern i de raquetes',
+ 'tours.map.pisteSled': 'Pistes de trineu',
+ 'tours.map.pisteLift': 'Remuntadors',
+ 'tours.map.pisteStatic': 'Dades del mapa, no un informe: res sobre què és obert o trepitjat, la neu o les allaus.',
+ 'tours.map.pisteFullKey': 'Llegenda completa a OpenSnowMap',
'tours.import.previewTitle': 'Previsualització del GPX',
'tours.import.previewHint': 'Encara no s’ha desat res. Revisa el recorregut i després importa.',
'tours.import.previewFiles': '{count} fitxers',
diff --git a/shared/src/i18n/cs/tours.ts b/shared/src/i18n/cs/tours.ts
index abcc1e289..860046dc7 100644
--- a/shared/src/i18n/cs/tours.ts
+++ b/shared/src/i18n/cs/tours.ts
@@ -693,6 +693,23 @@ const tours: TranslationStrings = {
'TREK spojí tyto dva body přímou čarou. Žádný plánovač trasy tento úsek nenaplánoval ani nezkontroloval.',
'tours.map.seamarks': 'Plavební znaky',
'tours.map.seamarksDown': 'Plavební znaky se nenačítají. Mapa i vaše trasa dál fungují.',
+ 'tours.map.pistes': 'Sjezdovky, běžkařské tratě a vleky',
+ 'tours.map.pistesDown': 'Sjezdovky se nenačítají. Mapa i vaše trasa dál fungují.',
+ 'tours.map.pisteKey': 'Legenda sjezdovek',
+ 'tours.map.pisteDownhill': 'Sjezdovky podle obtížnosti',
+ 'tours.map.pisteGrade.novice': 'Začátečník',
+ 'tours.map.pisteGrade.easy': 'Lehká',
+ 'tours.map.pisteGrade.intermediate': 'Střední',
+ 'tours.map.pisteGrade.advanced': 'Těžká',
+ 'tours.map.pisteGrade.expert': 'Expertní',
+ 'tours.map.pisteGrade.freeride': 'Volný terén',
+ 'tours.map.pisteNordic': 'Běžkařské tratě',
+ 'tours.map.pisteWinterHike': 'Zimní a sněžnicové trasy',
+ 'tours.map.pisteSled': 'Sáňkařské dráhy',
+ 'tours.map.pisteLift': 'Vleky a lanovky',
+ 'tours.map.pisteStatic':
+ 'Mapová data, ne zpravodajství: nic o tom, co je otevřené nebo upravené, o sněhu ani lavinách.',
+ 'tours.map.pisteFullKey': 'Celá legenda na OpenSnowMap',
'tours.import.previewTitle': 'Náhled GPX',
'tours.import.previewHint': 'Zatím nic není uloženo. Zkontrolujte průběh a pak importujte.',
'tours.import.previewFiles': '{count} souborů',
diff --git a/shared/src/i18n/de/tours.ts b/shared/src/i18n/de/tours.ts
index 00830b01a..9125f83c1 100644
--- a/shared/src/i18n/de/tours.ts
+++ b/shared/src/i18n/de/tours.ts
@@ -710,6 +710,23 @@ const tours: TranslationStrings = {
'TREK verbindet diese beiden Punkte mit einer geraden Linie. Kein Router hat diesen Abschnitt geplant oder geprüft.',
'tours.map.seamarks': 'Seezeichen',
'tours.map.seamarksDown': 'Seezeichen laden gerade nicht. Karte und Route funktionieren weiter.',
+ 'tours.map.pistes': 'Pisten, Loipen und Lifte',
+ 'tours.map.pistesDown': 'Pisten laden gerade nicht. Karte und Route funktionieren weiter.',
+ 'tours.map.pisteKey': 'Pistenlegende',
+ 'tours.map.pisteDownhill': 'Abfahrten nach Schwierigkeit',
+ 'tours.map.pisteGrade.novice': 'Anfänger',
+ 'tours.map.pisteGrade.easy': 'Leicht',
+ 'tours.map.pisteGrade.intermediate': 'Mittel',
+ 'tours.map.pisteGrade.advanced': 'Schwer',
+ 'tours.map.pisteGrade.expert': 'Experte',
+ 'tours.map.pisteGrade.freeride': 'Freeride', // same-as-en
+ 'tours.map.pisteNordic': 'Loipen',
+ 'tours.map.pisteWinterHike': 'Winter- und Schneeschuhwege',
+ 'tours.map.pisteSled': 'Rodelbahnen',
+ 'tours.map.pisteLift': 'Lifte und Bahnen',
+ 'tours.map.pisteStatic':
+ 'Kartendaten, kein Lagebericht: nichts dazu, was offen oder präpariert ist, zu Schnee oder Lawinen.',
+ 'tours.map.pisteFullKey': 'Ganze Legende bei OpenSnowMap',
'tours.import.previewTitle': 'GPX-Vorschau',
'tours.import.previewHint': 'Noch ist nichts gespeichert. Prüfe den Verlauf, dann importieren.',
'tours.import.previewFiles': '{count} Dateien',
diff --git a/shared/src/i18n/en/tours.ts b/shared/src/i18n/en/tours.ts
index d1967c572..ac23d116e 100644
--- a/shared/src/i18n/en/tours.ts
+++ b/shared/src/i18n/en/tours.ts
@@ -693,6 +693,23 @@ const tours: TranslationStrings = {
'TREK joins these two points with a straight line. No router planned or checked this leg.',
'tours.map.seamarks': 'Seamarks',
'tours.map.seamarksDown': 'Seamarks are not loading. The map and your route still work.',
+ 'tours.map.pistes': 'Pistes, cross-country trails and lifts',
+ 'tours.map.pistesDown': 'Pistes are not loading. The map and your route still work.',
+ 'tours.map.pisteKey': 'Piste key',
+ 'tours.map.pisteDownhill': 'Downhill runs by difficulty',
+ 'tours.map.pisteGrade.novice': 'Novice',
+ 'tours.map.pisteGrade.easy': 'Easy',
+ 'tours.map.pisteGrade.intermediate': 'Intermediate',
+ 'tours.map.pisteGrade.advanced': 'Advanced',
+ 'tours.map.pisteGrade.expert': 'Expert',
+ 'tours.map.pisteGrade.freeride': 'Freeride',
+ 'tours.map.pisteNordic': 'Cross-country trails',
+ 'tours.map.pisteWinterHike': 'Winter and snowshoe trails',
+ 'tours.map.pisteSled': 'Toboggan runs',
+ 'tours.map.pisteLift': 'Lifts and cable cars',
+ 'tours.map.pisteStatic':
+ 'Mapped data, not a live report: it says nothing about what is open or groomed, the snow or avalanches.',
+ 'tours.map.pisteFullKey': 'Full key at OpenSnowMap',
'tours.import.previewTitle': 'GPX preview',
'tours.import.previewHint': 'Nothing is saved yet. Check the course, then import.',
'tours.import.previewFiles': '{count} files',
diff --git a/shared/src/i18n/es/tours.ts b/shared/src/i18n/es/tours.ts
index 719c3c044..5cb0f134c 100644
--- a/shared/src/i18n/es/tours.ts
+++ b/shared/src/i18n/es/tours.ts
@@ -705,6 +705,22 @@ const tours: TranslationStrings = {
'TREK une estos dos puntos con una línea recta. Ningún enrutador ha planificado ni comprobado este tramo.',
'tours.map.seamarks': 'Señales náuticas',
'tours.map.seamarksDown': 'Las señales náuticas no cargan. El mapa y tu ruta siguen funcionando.',
+ 'tours.map.pistes': 'Pistas, circuitos de fondo y remontes',
+ 'tours.map.pistesDown': 'Las pistas no cargan. El mapa y tu ruta siguen funcionando.',
+ 'tours.map.pisteKey': 'Leyenda de pistas',
+ 'tours.map.pisteDownhill': 'Pistas de descenso por dificultad',
+ 'tours.map.pisteGrade.novice': 'Principiante',
+ 'tours.map.pisteGrade.easy': 'Fácil',
+ 'tours.map.pisteGrade.intermediate': 'Intermedia',
+ 'tours.map.pisteGrade.advanced': 'Difícil',
+ 'tours.map.pisteGrade.expert': 'Experto',
+ 'tours.map.pisteGrade.freeride': 'Fuera de pista',
+ 'tours.map.pisteNordic': 'Circuitos de esquí de fondo',
+ 'tours.map.pisteWinterHike': 'Senderos invernales y de raquetas',
+ 'tours.map.pisteSled': 'Pistas de trineo',
+ 'tours.map.pisteLift': 'Remontes',
+ 'tours.map.pisteStatic': 'Datos del mapa, no un parte: no dice qué está abierto o pisado, ni nada de nieve o aludes.',
+ 'tours.map.pisteFullKey': 'Leyenda completa en OpenSnowMap',
'tours.import.previewTitle': 'Vista previa del GPX',
'tours.import.previewHint': 'Aún no se ha guardado nada. Revisa el recorrido y luego importa.',
'tours.import.previewFiles': '{count} archivos',
diff --git a/shared/src/i18n/et/tours.ts b/shared/src/i18n/et/tours.ts
index 7e697cc4d..acc6f3f77 100644
--- a/shared/src/i18n/et/tours.ts
+++ b/shared/src/i18n/et/tours.ts
@@ -696,6 +696,23 @@ const tours: TranslationStrings = {
'TREK ühendab need kaks punkti sirgjoonega. Ükski marsruudiplaneerija ei ole seda lõiku planeerinud ega kontrollinud.',
'tours.map.seamarks': 'Navigatsioonimärgid',
'tours.map.seamarksDown': 'Navigatsioonimärgid ei laadi. Kaart ja sinu marsruut töötavad edasi.',
+ 'tours.map.pistes': 'Nõlvad, suusarajad ja tõstukid',
+ 'tours.map.pistesDown': 'Nõlvad ei laadi. Kaart ja sinu marsruut töötavad edasi.',
+ 'tours.map.pisteKey': 'Nõlvade legend',
+ 'tours.map.pisteDownhill': 'Laskumisnõlvad raskuse järgi',
+ 'tours.map.pisteGrade.novice': 'Algaja',
+ 'tours.map.pisteGrade.easy': 'Lihtne',
+ 'tours.map.pisteGrade.intermediate': 'Keskmine',
+ 'tours.map.pisteGrade.advanced': 'Raske',
+ 'tours.map.pisteGrade.expert': 'Ekspert',
+ 'tours.map.pisteGrade.freeride': 'Vabalaskumine',
+ 'tours.map.pisteNordic': 'Murdmaasuusarajad',
+ 'tours.map.pisteWinterHike': 'Talve- ja räätsamatkarajad',
+ 'tours.map.pisteSled': 'Kelgurajad',
+ 'tours.map.pisteLift': 'Tõstukid ja köisraudteed',
+ 'tours.map.pisteStatic':
+ 'Kaardiandmed, mitte olukorrateade: ei ütle midagi lahtiolekust, hooldusest, lumest ega laviinidest.',
+ 'tours.map.pisteFullKey': 'Täielik legend OpenSnowMapis',
'tours.import.previewTitle': 'GPX eelvaade',
'tours.import.previewHint': 'Midagi pole veel salvestatud. Kontrolli marsruuti ja impordi siis.',
'tours.import.previewFiles': '{count} faili',
diff --git a/shared/src/i18n/fr/tours.ts b/shared/src/i18n/fr/tours.ts
index b8ec48bb9..15c9f2c9d 100644
--- a/shared/src/i18n/fr/tours.ts
+++ b/shared/src/i18n/fr/tours.ts
@@ -715,6 +715,23 @@ const tours: TranslationStrings = {
'tours.map.seamarks': 'Balisage maritime',
'tours.map.seamarksDown':
'Le balisage maritime ne se charge pas. La carte et votre itinéraire fonctionnent toujours.',
+ 'tours.map.pistes': 'Pistes, pistes de fond et remontées',
+ 'tours.map.pistesDown': 'Les pistes ne se chargent pas. La carte et votre itinéraire fonctionnent toujours.',
+ 'tours.map.pisteKey': 'Légende des pistes',
+ 'tours.map.pisteDownhill': 'Pistes de descente par difficulté',
+ 'tours.map.pisteGrade.novice': 'Débutant',
+ 'tours.map.pisteGrade.easy': 'Facile',
+ 'tours.map.pisteGrade.intermediate': 'Intermédiaire',
+ 'tours.map.pisteGrade.advanced': 'Difficile',
+ 'tours.map.pisteGrade.expert': 'Expert', // same-as-en
+ 'tours.map.pisteGrade.freeride': 'Hors-piste',
+ 'tours.map.pisteNordic': 'Pistes de ski de fond',
+ 'tours.map.pisteWinterHike': 'Sentiers piétons et raquettes',
+ 'tours.map.pisteSled': 'Pistes de luge',
+ 'tours.map.pisteLift': 'Remontées mécaniques',
+ 'tours.map.pisteStatic':
+ 'Données cartographiques, pas un bulletin : rien sur l’ouverture, le damage, la neige ou les avalanches.',
+ 'tours.map.pisteFullKey': 'Légende complète sur OpenSnowMap',
'tours.import.previewTitle': 'Aperçu GPX',
'tours.import.previewHint': 'Rien n’est encore enregistré. Vérifiez le tracé, puis importez.',
'tours.import.previewFiles': '{count} fichiers',
diff --git a/shared/src/i18n/gr/tours.ts b/shared/src/i18n/gr/tours.ts
index 75a067cf6..bb3e1ca2c 100644
--- a/shared/src/i18n/gr/tours.ts
+++ b/shared/src/i18n/gr/tours.ts
@@ -717,6 +717,23 @@ const tours: TranslationStrings = {
'Το TREK ενώνει αυτά τα δύο σημεία με ευθεία. Κανένας δρομολογητής δεν σχεδίασε ούτε έλεγξε αυτό το τμήμα.',
'tours.map.seamarks': 'Ναυτικά σήματα',
'tours.map.seamarksDown': 'Τα ναυτικά σήματα δεν φορτώνουν. Ο χάρτης και η διαδρομή σας λειτουργούν κανονικά.',
+ 'tours.map.pistes': 'Πίστες, διαδρομές αντοχής και αναβατήρες',
+ 'tours.map.pistesDown': 'Οι πίστες δεν φορτώνουν. Ο χάρτης και η διαδρομή σας λειτουργούν κανονικά.',
+ 'tours.map.pisteKey': 'Υπόμνημα πιστών',
+ 'tours.map.pisteDownhill': 'Πίστες κατάβασης ανά δυσκολία',
+ 'tours.map.pisteGrade.novice': 'Αρχάριοι',
+ 'tours.map.pisteGrade.easy': 'Εύκολη',
+ 'tours.map.pisteGrade.intermediate': 'Μέτρια',
+ 'tours.map.pisteGrade.advanced': 'Δύσκολη',
+ 'tours.map.pisteGrade.expert': 'Για έμπειρους',
+ 'tours.map.pisteGrade.freeride': 'Εκτός πίστας',
+ 'tours.map.pisteNordic': 'Διαδρομές σκι αντοχής',
+ 'tours.map.pisteWinterHike': 'Χειμερινά μονοπάτια και διαδρομές με χιονοπέδιλα',
+ 'tours.map.pisteSled': 'Διαδρομές έλκηθρου',
+ 'tours.map.pisteLift': 'Αναβατήρες και τελεφερίκ',
+ 'tours.map.pisteStatic':
+ 'Δεδομένα χάρτη, όχι ενημέρωση: δεν λένε τι είναι ανοιχτό ή περιποιημένο, ούτε για χιόνι ή χιονοστιβάδες.',
+ 'tours.map.pisteFullKey': 'Πλήρες υπόμνημα στο OpenSnowMap',
'tours.import.previewTitle': 'Προεπισκόπηση GPX',
'tours.import.previewHint': 'Δεν έχει αποθηκευτεί τίποτα ακόμη. Ελέγξτε τη διαδρομή και μετά κάντε εισαγωγή.',
'tours.import.previewFiles': '{count} αρχεία',
diff --git a/shared/src/i18n/hu/tours.ts b/shared/src/i18n/hu/tours.ts
index 225a2ed4d..de7cfd19a 100644
--- a/shared/src/i18n/hu/tours.ts
+++ b/shared/src/i18n/hu/tours.ts
@@ -707,6 +707,23 @@ const tours: TranslationStrings = {
'A TREK egyenes vonallal köti össze ezt a két pontot. Útvonaltervező nem tervezte és nem ellenőrizte ezt a szakaszt.',
'tours.map.seamarks': 'Hajózási jelek',
'tours.map.seamarksDown': 'A hajózási jelek nem töltődnek be. A térkép és az útvonalad továbbra is működik.',
+ 'tours.map.pistes': 'Pályák, sífutópályák és felvonók',
+ 'tours.map.pistesDown': 'A pályák nem töltődnek be. A térkép és az útvonalad továbbra is működik.',
+ 'tours.map.pisteKey': 'Pályajelmagyarázat',
+ 'tours.map.pisteDownhill': 'Lesiklópályák nehézség szerint',
+ 'tours.map.pisteGrade.novice': 'Kezdő',
+ 'tours.map.pisteGrade.easy': 'Könnyű',
+ 'tours.map.pisteGrade.intermediate': 'Közepes',
+ 'tours.map.pisteGrade.advanced': 'Nehéz',
+ 'tours.map.pisteGrade.expert': 'Szakértő',
+ 'tours.map.pisteGrade.freeride': 'Pályán kívüli',
+ 'tours.map.pisteNordic': 'Sífutópályák',
+ 'tours.map.pisteWinterHike': 'Téli és hótalpas utak',
+ 'tours.map.pisteSled': 'Szánkópályák',
+ 'tours.map.pisteLift': 'Felvonók és kabinos pályák',
+ 'tours.map.pisteStatic':
+ 'Térképadat, nem helyzetjelentés: semmit sem mond arról, mi van nyitva vagy előkészítve, a hóról vagy a lavinákról.',
+ 'tours.map.pisteFullKey': 'Teljes jelmagyarázat az OpenSnowMapen',
'tours.import.previewTitle': 'GPX-előnézet',
'tours.import.previewHint': 'Még semmi sincs mentve. Ellenőrizd a nyomvonalat, aztán importáld.',
'tours.import.previewFiles': '{count} fájl',
diff --git a/shared/src/i18n/id/tours.ts b/shared/src/i18n/id/tours.ts
index 0b710a7ff..5226c5971 100644
--- a/shared/src/i18n/id/tours.ts
+++ b/shared/src/i18n/id/tours.ts
@@ -698,6 +698,23 @@ const tours: TranslationStrings = {
'TREK menghubungkan dua titik ini dengan garis lurus. Tidak ada perute yang merencanakan atau memeriksa ruas ini.',
'tours.map.seamarks': 'Rambu laut',
'tours.map.seamarksDown': 'Rambu laut tidak termuat. Peta dan rutemu tetap berfungsi.',
+ 'tours.map.pistes': 'Lintasan ski, jalur ski lintas alam, dan lift',
+ 'tours.map.pistesDown': 'Lintasan ski tidak termuat. Peta dan rutemu tetap berfungsi.',
+ 'tours.map.pisteKey': 'Keterangan lintasan',
+ 'tours.map.pisteDownhill': 'Lintasan turun menurut tingkat kesulitan',
+ 'tours.map.pisteGrade.novice': 'Pemula',
+ 'tours.map.pisteGrade.easy': 'Mudah',
+ 'tours.map.pisteGrade.intermediate': 'Menengah',
+ 'tours.map.pisteGrade.advanced': 'Sulit',
+ 'tours.map.pisteGrade.expert': 'Ahli',
+ 'tours.map.pisteGrade.freeride': 'Di luar lintasan',
+ 'tours.map.pisteNordic': 'Jalur ski lintas alam',
+ 'tours.map.pisteWinterHike': 'Jalur musim dingin dan sepatu salju',
+ 'tours.map.pisteSled': 'Lintasan kereta luncur',
+ 'tours.map.pisteLift': 'Lift dan kereta gantung',
+ 'tours.map.pisteStatic':
+ 'Data peta, bukan laporan terkini: tidak menyebut apa yang buka atau sudah dipadatkan, salju, atau longsoran.',
+ 'tours.map.pisteFullKey': 'Keterangan lengkap di OpenSnowMap',
'tours.import.previewTitle': 'Pratinjau GPX',
'tours.import.previewHint': 'Belum ada yang disimpan. Periksa jalurnya, lalu impor.',
'tours.import.previewFiles': '{count} berkas',
diff --git a/shared/src/i18n/it/tours.ts b/shared/src/i18n/it/tours.ts
index 09814fd6d..3d809583b 100644
--- a/shared/src/i18n/it/tours.ts
+++ b/shared/src/i18n/it/tours.ts
@@ -707,6 +707,22 @@ const tours: TranslationStrings = {
'TREK collega questi due punti con una linea retta. Nessun router ha pianificato o verificato questo tratto.',
'tours.map.seamarks': 'Segnali nautici',
'tours.map.seamarksDown': 'I segnali nautici non si caricano. La mappa e il percorso funzionano ancora.',
+ 'tours.map.pistes': 'Piste, anelli di fondo e impianti',
+ 'tours.map.pistesDown': 'Le piste non si caricano. La mappa e il percorso funzionano ancora.',
+ 'tours.map.pisteKey': 'Legenda delle piste',
+ 'tours.map.pisteDownhill': 'Piste di discesa per difficoltà',
+ 'tours.map.pisteGrade.novice': 'Principiante',
+ 'tours.map.pisteGrade.easy': 'Facile',
+ 'tours.map.pisteGrade.intermediate': 'Media',
+ 'tours.map.pisteGrade.advanced': 'Difficile',
+ 'tours.map.pisteGrade.expert': 'Esperto',
+ 'tours.map.pisteGrade.freeride': 'Fuoripista',
+ 'tours.map.pisteNordic': 'Piste da fondo',
+ 'tours.map.pisteWinterHike': 'Sentieri invernali e da ciaspole',
+ 'tours.map.pisteSled': 'Piste da slittino',
+ 'tours.map.pisteLift': 'Impianti di risalita',
+ 'tours.map.pisteStatic': 'Dati della mappa, non un bollettino: nulla su apertura, battitura, neve o valanghe.',
+ 'tours.map.pisteFullKey': 'Legenda completa su OpenSnowMap',
'tours.import.previewTitle': 'Anteprima GPX',
'tours.import.previewHint': 'Non è ancora stato salvato nulla. Controlla il percorso, poi importa.',
'tours.import.previewFiles': '{count} file',
diff --git a/shared/src/i18n/ja/tours.ts b/shared/src/i18n/ja/tours.ts
index 700fe93d8..356067eea 100644
--- a/shared/src/i18n/ja/tours.ts
+++ b/shared/src/i18n/ja/tours.ts
@@ -681,6 +681,23 @@ const tours: TranslationStrings = {
'TREK はこの 2 点を直線で結びます。この区間はどのルート計算でも計画・確認されていません。',
'tours.map.seamarks': '航路標識',
'tours.map.seamarksDown': '航路標識を読み込めません。地図とルートはそのまま使えます。',
+ 'tours.map.pistes': 'ゲレンデ、クロスカントリーコース、リフト',
+ 'tours.map.pistesDown': 'ゲレンデを読み込めません。地図とルートはそのまま使えます。',
+ 'tours.map.pisteKey': 'ゲレンデの凡例',
+ 'tours.map.pisteDownhill': '難易度別のゲレンデ',
+ 'tours.map.pisteGrade.novice': '初心者',
+ 'tours.map.pisteGrade.easy': '初級',
+ 'tours.map.pisteGrade.intermediate': '中級',
+ 'tours.map.pisteGrade.advanced': '上級',
+ 'tours.map.pisteGrade.expert': 'エキスパート',
+ 'tours.map.pisteGrade.freeride': 'フリーライド',
+ 'tours.map.pisteNordic': 'クロスカントリーコース',
+ 'tours.map.pisteWinterHike': '冬季・スノーシューのルート',
+ 'tours.map.pisteSled': 'そりコース',
+ 'tours.map.pisteLift': 'リフトとロープウェイ',
+ 'tours.map.pisteStatic':
+ '地図データであり現況情報ではありません。営業中か、圧雪済みか、雪や雪崩については何も示しません。',
+ 'tours.map.pisteFullKey': 'OpenSnowMap の完全な凡例',
'tours.import.previewTitle': 'GPX プレビュー',
'tours.import.previewHint': 'まだ何も保存されていません。コースを確認してから取り込んでください。',
'tours.import.previewFiles': '{count} 件のファイル',
diff --git a/shared/src/i18n/ko/tours.ts b/shared/src/i18n/ko/tours.ts
index 8cb171fdb..d8d38033b 100644
--- a/shared/src/i18n/ko/tours.ts
+++ b/shared/src/i18n/ko/tours.ts
@@ -679,6 +679,23 @@ const tours: TranslationStrings = {
'TREK은 이 두 지점을 직선으로 잇습니다. 어떤 경로 계산도 이 구간을 계획하거나 확인하지 않았습니다.',
'tours.map.seamarks': '항로 표지',
'tours.map.seamarksDown': '항로 표지를 불러오지 못했습니다. 지도와 경로는 계속 사용할 수 있습니다.',
+ 'tours.map.pistes': '슬로프, 크로스컨트리 코스, 리프트',
+ 'tours.map.pistesDown': '슬로프를 불러오지 못했습니다. 지도와 경로는 계속 사용할 수 있습니다.',
+ 'tours.map.pisteKey': '슬로프 범례',
+ 'tours.map.pisteDownhill': '난이도별 활강 슬로프',
+ 'tours.map.pisteGrade.novice': '입문',
+ 'tours.map.pisteGrade.easy': '초급',
+ 'tours.map.pisteGrade.intermediate': '중급',
+ 'tours.map.pisteGrade.advanced': '상급',
+ 'tours.map.pisteGrade.expert': '최상급',
+ 'tours.map.pisteGrade.freeride': '프리라이드',
+ 'tours.map.pisteNordic': '크로스컨트리 코스',
+ 'tours.map.pisteWinterHike': '겨울 및 설피 산책로',
+ 'tours.map.pisteSled': '썰매 코스',
+ 'tours.map.pisteLift': '리프트와 케이블카',
+ 'tours.map.pisteStatic':
+ '지도 데이터일 뿐 실시간 정보가 아닙니다. 운영 여부, 정설 상태, 눈이나 눈사태에 대해서는 알려주지 않습니다.',
+ 'tours.map.pisteFullKey': 'OpenSnowMap의 전체 범례',
'tours.import.previewTitle': 'GPX 미리보기',
'tours.import.previewHint': '아직 저장된 것이 없습니다. 경로를 확인한 뒤 가져오세요.',
'tours.import.previewFiles': '파일 {count}개',
diff --git a/shared/src/i18n/nl/tours.ts b/shared/src/i18n/nl/tours.ts
index 8b0db0878..8c3ce7fb7 100644
--- a/shared/src/i18n/nl/tours.ts
+++ b/shared/src/i18n/nl/tours.ts
@@ -707,6 +707,23 @@ const tours: TranslationStrings = {
'TREK verbindt deze twee punten met een rechte lijn. Geen router heeft dit stuk gepland of gecontroleerd.',
'tours.map.seamarks': 'Zeemarkeringen',
'tours.map.seamarksDown': 'Zeemarkeringen laden niet. De kaart en je route werken nog.',
+ 'tours.map.pistes': 'Pistes, langlaufloipes en liften',
+ 'tours.map.pistesDown': 'Pistes laden niet. De kaart en je route werken nog.',
+ 'tours.map.pisteKey': 'Pistelegenda',
+ 'tours.map.pisteDownhill': 'Afdalingen naar moeilijkheid',
+ 'tours.map.pisteGrade.novice': 'Beginner',
+ 'tours.map.pisteGrade.easy': 'Makkelijk',
+ 'tours.map.pisteGrade.intermediate': 'Gemiddeld',
+ 'tours.map.pisteGrade.advanced': 'Moeilijk',
+ 'tours.map.pisteGrade.expert': 'Expert', // same-as-en
+ 'tours.map.pisteGrade.freeride': 'Offpiste',
+ 'tours.map.pisteNordic': 'Langlaufloipes',
+ 'tours.map.pisteWinterHike': 'Winter- en sneeuwschoenroutes',
+ 'tours.map.pisteSled': 'Rodelbanen',
+ 'tours.map.pisteLift': 'Liften en kabelbanen',
+ 'tours.map.pisteStatic':
+ 'Kaartgegevens, geen actueel bericht: niets over wat open of geprepareerd is, sneeuw of lawines.',
+ 'tours.map.pisteFullKey': 'Volledige legenda op OpenSnowMap',
'tours.import.previewTitle': 'GPX-voorbeeld',
'tours.import.previewHint': 'Er is nog niets opgeslagen. Controleer het verloop en importeer dan.',
'tours.import.previewFiles': '{count} bestanden',
diff --git a/shared/src/i18n/pl/tours.ts b/shared/src/i18n/pl/tours.ts
index 18fa38329..d227edd8e 100644
--- a/shared/src/i18n/pl/tours.ts
+++ b/shared/src/i18n/pl/tours.ts
@@ -715,6 +715,23 @@ const tours: TranslationStrings = {
'TREK łączy te dwa punkty prostą linią. Żaden planer trasy nie zaplanował ani nie sprawdził tego odcinka.',
'tours.map.seamarks': 'Znaki nawigacyjne',
'tours.map.seamarksDown': 'Znaki nawigacyjne się nie wczytują. Mapa i Twoja trasa nadal działają.',
+ 'tours.map.pistes': 'Trasy zjazdowe, biegowe i wyciągi',
+ 'tours.map.pistesDown': 'Trasy narciarskie się nie wczytują. Mapa i Twoja trasa nadal działają.',
+ 'tours.map.pisteKey': 'Legenda tras',
+ 'tours.map.pisteDownhill': 'Trasy zjazdowe według trudności',
+ 'tours.map.pisteGrade.novice': 'Początkujący',
+ 'tours.map.pisteGrade.easy': 'Łatwa',
+ 'tours.map.pisteGrade.intermediate': 'Średnia',
+ 'tours.map.pisteGrade.advanced': 'Trudna',
+ 'tours.map.pisteGrade.expert': 'Ekspercka',
+ 'tours.map.pisteGrade.freeride': 'Poza trasą',
+ 'tours.map.pisteNordic': 'Trasy biegowe',
+ 'tours.map.pisteWinterHike': 'Szlaki zimowe i rakietowe',
+ 'tours.map.pisteSled': 'Tory saneczkowe',
+ 'tours.map.pisteLift': 'Wyciągi i kolejki',
+ 'tours.map.pisteStatic':
+ 'Dane mapy, nie komunikat: nic o tym, co jest otwarte lub przygotowane, o śniegu ani lawinach.',
+ 'tours.map.pisteFullKey': 'Pełna legenda w OpenSnowMap',
'tours.import.previewTitle': 'Podgląd GPX',
'tours.import.previewHint': 'Nic jeszcze nie zapisano. Sprawdź przebieg, a potem zaimportuj.',
'tours.import.previewFiles': '{count} pliku',
diff --git a/shared/src/i18n/ru/tours.ts b/shared/src/i18n/ru/tours.ts
index 2e17ad71c..1e38d93d7 100644
--- a/shared/src/i18n/ru/tours.ts
+++ b/shared/src/i18n/ru/tours.ts
@@ -718,6 +718,23 @@ const tours: TranslationStrings = {
'TREK соединяет эти две точки прямой линией. Ни один маршрутизатор не прокладывал и не проверял этот участок.',
'tours.map.seamarks': 'Навигационные знаки',
'tours.map.seamarksDown': 'Навигационные знаки не загружаются. Карта и ваш маршрут работают дальше.',
+ 'tours.map.pistes': 'Трассы, лыжни и подъёмники',
+ 'tours.map.pistesDown': 'Трассы не загружаются. Карта и ваш маршрут работают дальше.',
+ 'tours.map.pisteKey': 'Легенда трасс',
+ 'tours.map.pisteDownhill': 'Горнолыжные трассы по сложности',
+ 'tours.map.pisteGrade.novice': 'Для новичков',
+ 'tours.map.pisteGrade.easy': 'Лёгкая',
+ 'tours.map.pisteGrade.intermediate': 'Средняя',
+ 'tours.map.pisteGrade.advanced': 'Сложная',
+ 'tours.map.pisteGrade.expert': 'Экспертная',
+ 'tours.map.pisteGrade.freeride': 'Фрирайд',
+ 'tours.map.pisteNordic': 'Лыжни',
+ 'tours.map.pisteWinterHike': 'Зимние и снегоступные тропы',
+ 'tours.map.pisteSled': 'Санные трассы',
+ 'tours.map.pisteLift': 'Подъёмники и канатные дороги',
+ 'tours.map.pisteStatic':
+ 'Это данные карты, а не сводка: они ничего не говорят о том, что открыто или подготовлено, о снеге и лавинах.',
+ 'tours.map.pisteFullKey': 'Полная легенда на OpenSnowMap',
'tours.import.previewTitle': 'Предпросмотр GPX',
'tours.import.previewHint': 'Пока ничего не сохранено. Проверьте маршрут и затем импортируйте.',
'tours.import.previewFiles': '{count} файла',
diff --git a/shared/src/i18n/sk/tours.ts b/shared/src/i18n/sk/tours.ts
index afd277632..962c76306 100644
--- a/shared/src/i18n/sk/tours.ts
+++ b/shared/src/i18n/sk/tours.ts
@@ -695,6 +695,23 @@ const tours: TranslationStrings = {
'TREK spojí tieto dva body priamou čiarou. Žiadny plánovač trasy tento úsek nenaplánoval ani neskontroloval.',
'tours.map.seamarks': 'Plavebné znaky',
'tours.map.seamarksDown': 'Plavebné znaky sa nenačítavajú. Mapa aj vaša trasa ďalej fungujú.',
+ 'tours.map.pistes': 'Zjazdovky, bežecké trate a vleky',
+ 'tours.map.pistesDown': 'Zjazdovky sa nenačítavajú. Mapa aj vaša trasa ďalej fungujú.',
+ 'tours.map.pisteKey': 'Legenda zjazdoviek',
+ 'tours.map.pisteDownhill': 'Zjazdovky podľa náročnosti',
+ 'tours.map.pisteGrade.novice': 'Začiatočník',
+ 'tours.map.pisteGrade.easy': 'Ľahká',
+ 'tours.map.pisteGrade.intermediate': 'Stredná',
+ 'tours.map.pisteGrade.advanced': 'Ťažká',
+ 'tours.map.pisteGrade.expert': 'Expertná',
+ 'tours.map.pisteGrade.freeride': 'Voľný terén',
+ 'tours.map.pisteNordic': 'Bežecké trate',
+ 'tours.map.pisteWinterHike': 'Zimné a snežnicové trasy',
+ 'tours.map.pisteSled': 'Sánkarské dráhy',
+ 'tours.map.pisteLift': 'Vleky a lanovky',
+ 'tours.map.pisteStatic':
+ 'Mapové údaje, nie spravodajstvo: nič o tom, čo je otvorené alebo upravené, o snehu ani lavínach.',
+ 'tours.map.pisteFullKey': 'Celá legenda na OpenSnowMap',
'tours.import.previewTitle': 'Náhľad GPX',
'tours.import.previewHint': 'Zatiaľ nie je nič uložené. Skontrolujte priebeh a potom importujte.',
'tours.import.previewFiles': '{count} súborov',
diff --git a/shared/src/i18n/sv/tours.ts b/shared/src/i18n/sv/tours.ts
index ccb8ec8ef..99ee4b4eb 100644
--- a/shared/src/i18n/sv/tours.ts
+++ b/shared/src/i18n/sv/tours.ts
@@ -693,6 +693,23 @@ const tours: TranslationStrings = {
'TREK förbinder de här två punkterna med en rak linje. Ingen ruttplanerare har planerat eller kontrollerat sträckan.',
'tours.map.seamarks': 'Sjömärken',
'tours.map.seamarksDown': 'Sjömärkena laddas inte. Kartan och din rutt fungerar ändå.',
+ 'tours.map.pistes': 'Pister, längdspår och liftar',
+ 'tours.map.pistesDown': 'Pisterna laddas inte. Kartan och din rutt fungerar ändå.',
+ 'tours.map.pisteKey': 'Pistförklaring',
+ 'tours.map.pisteDownhill': 'Nedfarter efter svårighet',
+ 'tours.map.pisteGrade.novice': 'Nybörjare',
+ 'tours.map.pisteGrade.easy': 'Lätt',
+ 'tours.map.pisteGrade.intermediate': 'Medel',
+ 'tours.map.pisteGrade.advanced': 'Svår',
+ 'tours.map.pisteGrade.expert': 'Expert', // same-as-en
+ 'tours.map.pisteGrade.freeride': 'Offpist',
+ 'tours.map.pisteNordic': 'Längdspår',
+ 'tours.map.pisteWinterHike': 'Vinter- och snöskoleder',
+ 'tours.map.pisteSled': 'Kälkbackar',
+ 'tours.map.pisteLift': 'Liftar och linbanor',
+ 'tours.map.pisteStatic':
+ 'Kartdata, ingen lägesrapport: inget om vad som är öppet eller preparerat, snö eller laviner.',
+ 'tours.map.pisteFullKey': 'Hela förklaringen på OpenSnowMap',
'tours.import.previewTitle': 'GPX-förhandsvisning',
'tours.import.previewHint': 'Inget är sparat ännu. Kontrollera sträckningen och importera sedan.',
'tours.import.previewFiles': '{count} filer',
diff --git a/shared/src/i18n/th/tours.ts b/shared/src/i18n/th/tours.ts
index 50be7c9a9..80b72f08f 100644
--- a/shared/src/i18n/th/tours.ts
+++ b/shared/src/i18n/th/tours.ts
@@ -666,6 +666,23 @@ const tours: TranslationStrings = {
'tours.planner.freeLegInfo': 'TREK เชื่อมสองจุดนี้ด้วยเส้นตรง ไม่มีตัวคำนวณเส้นทางใดวางแผนหรือตรวจสอบช่วงนี้',
'tours.map.seamarks': 'เครื่องหมายทางน้ำ',
'tours.map.seamarksDown': 'โหลดเครื่องหมายทางน้ำไม่ได้ แผนที่และเส้นทางของคุณยังใช้งานได้',
+ 'tours.map.pistes': 'ลานสกี เส้นทางสกีทางไกล และลิฟต์',
+ 'tours.map.pistesDown': 'โหลดลานสกีไม่ได้ แผนที่และเส้นทางของคุณยังใช้งานได้',
+ 'tours.map.pisteKey': 'คำอธิบายลานสกี',
+ 'tours.map.pisteDownhill': 'ลานสกีลงเขาตามระดับความยาก',
+ 'tours.map.pisteGrade.novice': 'มือใหม่',
+ 'tours.map.pisteGrade.easy': 'ง่าย',
+ 'tours.map.pisteGrade.intermediate': 'ปานกลาง',
+ 'tours.map.pisteGrade.advanced': 'ยาก',
+ 'tours.map.pisteGrade.expert': 'ผู้เชี่ยวชาญ',
+ 'tours.map.pisteGrade.freeride': 'นอกลานสกี',
+ 'tours.map.pisteNordic': 'เส้นทางสกีทางไกล',
+ 'tours.map.pisteWinterHike': 'เส้นทางเดินฤดูหนาวและรองเท้าเดินหิมะ',
+ 'tours.map.pisteSled': 'เส้นทางเลื่อนหิมะ',
+ 'tours.map.pisteLift': 'ลิฟต์และกระเช้า',
+ 'tours.map.pisteStatic':
+ 'เป็นข้อมูลแผนที่ ไม่ใช่รายงานสด ไม่ได้บอกว่าที่ใดเปิดหรือเตรียมลานแล้ว หรือเรื่องหิมะและหิมะถล่ม',
+ 'tours.map.pisteFullKey': 'คำอธิบายฉบับเต็มบน OpenSnowMap',
'tours.import.previewTitle': 'ตัวอย่าง GPX',
'tours.import.previewHint': 'ยังไม่มีการบันทึกอะไร ตรวจสอบเส้นทางก่อน แล้วจึงนำเข้า',
'tours.import.previewFiles': '{count} ไฟล์',
diff --git a/shared/src/i18n/tours-locales.spec.ts b/shared/src/i18n/tours-locales.spec.ts
index 8d6edccd4..cd7c819c4 100644
--- a/shared/src/i18n/tours-locales.spec.ts
+++ b/shared/src/i18n/tours-locales.spec.ts
@@ -20,7 +20,7 @@ const tokens = (value: string) => [...value.matchAll(/\{[^{}]+\}/g)].map((match)
// placeholder spec; here only the general keys are.
const groups = pluralGroups(Object.keys(english));
const generalKeys = (keys: string[]) => keys.filter((key) => !pluralFormOf(key, groups));
-const GENERAL_KEY_COUNT = 881;
+const GENERAL_KEY_COUNT = 897;
function literalKeys(source: string): string[] {
const tree = ts.createSourceFile('locale.ts', source, ts.ScriptTarget.Latest, true);
diff --git a/shared/src/i18n/tr/tours.ts b/shared/src/i18n/tr/tours.ts
index f981e3bc2..e1d8f7c87 100644
--- a/shared/src/i18n/tr/tours.ts
+++ b/shared/src/i18n/tr/tours.ts
@@ -701,6 +701,23 @@ const tours: TranslationStrings = {
'TREK bu iki noktayı düz bir çizgiyle birleştirir. Hiçbir rota planlayıcı bu bölümü planlamadı veya kontrol etmedi.',
'tours.map.seamarks': 'Deniz işaretleri',
'tours.map.seamarksDown': 'Deniz işaretleri yüklenmiyor. Harita ve rotan çalışmaya devam ediyor.',
+ 'tours.map.pistes': 'Pistler, kayaklı koşu parkurları ve teleferikler',
+ 'tours.map.pistesDown': 'Pistler yüklenmiyor. Harita ve rotan çalışmaya devam ediyor.',
+ 'tours.map.pisteKey': 'Pist açıklaması',
+ 'tours.map.pisteDownhill': 'Zorluğa göre iniş pistleri',
+ 'tours.map.pisteGrade.novice': 'Acemi',
+ 'tours.map.pisteGrade.easy': 'Kolay',
+ 'tours.map.pisteGrade.intermediate': 'Orta',
+ 'tours.map.pisteGrade.advanced': 'Zor',
+ 'tours.map.pisteGrade.expert': 'Uzman',
+ 'tours.map.pisteGrade.freeride': 'Pist dışı',
+ 'tours.map.pisteNordic': 'Kayaklı koşu parkurları',
+ 'tours.map.pisteWinterHike': 'Kış ve kar ayakkabısı yolları',
+ 'tours.map.pisteSled': 'Kızak yolları',
+ 'tours.map.pisteLift': 'Liftler ve teleferikler',
+ 'tours.map.pisteStatic':
+ 'Harita verisidir, güncel rapor değil: neyin açık ya da hazırlanmış olduğu, kar ya da çığ hakkında bir şey söylemez.',
+ 'tours.map.pisteFullKey': 'OpenSnowMap’te tam açıklama',
'tours.import.previewTitle': 'GPX önizlemesi',
'tours.import.previewHint': 'Henüz hiçbir şey kaydedilmedi. Güzergâhı kontrol et, sonra içe aktar.',
'tours.import.previewFiles': '{count} dosya',
diff --git a/shared/src/i18n/uk/tours.ts b/shared/src/i18n/uk/tours.ts
index 19fb2f106..7e12e98c5 100644
--- a/shared/src/i18n/uk/tours.ts
+++ b/shared/src/i18n/uk/tours.ts
@@ -711,6 +711,23 @@ const tours: TranslationStrings = {
'TREK з’єднує ці дві точки прямою лінією. Жоден маршрутизатор не прокладав і не перевіряв цю ділянку.',
'tours.map.seamarks': 'Навігаційні знаки',
'tours.map.seamarksDown': 'Навігаційні знаки не завантажуються. Мапа й ваш маршрут працюють далі.',
+ 'tours.map.pistes': 'Траси, лижні та підйомники',
+ 'tours.map.pistesDown': 'Траси не завантажуються. Мапа й ваш маршрут працюють далі.',
+ 'tours.map.pisteKey': 'Легенда трас',
+ 'tours.map.pisteDownhill': 'Гірськолижні траси за складністю',
+ 'tours.map.pisteGrade.novice': 'Для новачків',
+ 'tours.map.pisteGrade.easy': 'Легка',
+ 'tours.map.pisteGrade.intermediate': 'Середня',
+ 'tours.map.pisteGrade.advanced': 'Складна',
+ 'tours.map.pisteGrade.expert': 'Експертна',
+ 'tours.map.pisteGrade.freeride': 'Фрирайд',
+ 'tours.map.pisteNordic': 'Лижні',
+ 'tours.map.pisteWinterHike': 'Зимові та снігоступні стежки',
+ 'tours.map.pisteSled': 'Санні траси',
+ 'tours.map.pisteLift': 'Підйомники та канатні дороги',
+ 'tours.map.pisteStatic':
+ 'Це дані мапи, а не зведення: вони нічого не кажуть про те, що відкрито чи підготовлено, про сніг і лавини.',
+ 'tours.map.pisteFullKey': 'Повна легенда на OpenSnowMap',
'tours.import.previewTitle': 'Попередній перегляд GPX',
'tours.import.previewHint': 'Поки нічого не збережено. Перевірте маршрут, а потім імпортуйте.',
'tours.import.previewFiles': '{count} файлу',
diff --git a/shared/src/i18n/vi/tours.ts b/shared/src/i18n/vi/tours.ts
index bd9d290bf..75aa63d27 100644
--- a/shared/src/i18n/vi/tours.ts
+++ b/shared/src/i18n/vi/tours.ts
@@ -693,6 +693,23 @@ const tours: TranslationStrings = {
'TREK nối hai điểm này bằng một đường thẳng. Không công cụ định tuyến nào đã lập hay kiểm tra đoạn này.',
'tours.map.seamarks': 'Báo hiệu hàng hải',
'tours.map.seamarksDown': 'Báo hiệu hàng hải không tải được. Bản đồ và tuyến của bạn vẫn hoạt động.',
+ 'tours.map.pistes': 'Đường trượt, đường trượt băng đồng và cáp treo',
+ 'tours.map.pistesDown': 'Đường trượt không tải được. Bản đồ và tuyến của bạn vẫn hoạt động.',
+ 'tours.map.pisteKey': 'Chú giải đường trượt',
+ 'tours.map.pisteDownhill': 'Đường trượt dốc theo độ khó',
+ 'tours.map.pisteGrade.novice': 'Mới bắt đầu',
+ 'tours.map.pisteGrade.easy': 'Dễ',
+ 'tours.map.pisteGrade.intermediate': 'Trung bình',
+ 'tours.map.pisteGrade.advanced': 'Khó',
+ 'tours.map.pisteGrade.expert': 'Chuyên gia',
+ 'tours.map.pisteGrade.freeride': 'Ngoài đường trượt',
+ 'tours.map.pisteNordic': 'Đường trượt băng đồng',
+ 'tours.map.pisteWinterHike': 'Đường đi bộ mùa đông và giày tuyết',
+ 'tours.map.pisteSled': 'Đường xe trượt tuyết',
+ 'tours.map.pisteLift': 'Thang kéo và cáp treo',
+ 'tours.map.pisteStatic':
+ 'Dữ liệu bản đồ, không phải bản tin: không cho biết nơi nào đang mở hay đã được san tuyết, về tuyết hay lở tuyết.',
+ 'tours.map.pisteFullKey': 'Chú giải đầy đủ trên OpenSnowMap',
'tours.import.previewTitle': 'Xem trước GPX',
'tours.import.previewHint': 'Chưa có gì được lưu. Hãy kiểm tra lộ trình rồi nhập.',
'tours.import.previewFiles': '{count} tệp',
diff --git a/shared/src/i18n/zh-TW/tours.ts b/shared/src/i18n/zh-TW/tours.ts
index d453e1cb3..ef3f81523 100644
--- a/shared/src/i18n/zh-TW/tours.ts
+++ b/shared/src/i18n/zh-TW/tours.ts
@@ -639,6 +639,22 @@ const tours: TranslationStrings = {
'tours.planner.freeLegInfo': 'TREK 以直線連接這兩個點。此段未經任何路線規劃或檢查。',
'tours.map.seamarks': '航標',
'tours.map.seamarksDown': '航標無法載入。地圖和路線仍可正常使用。',
+ 'tours.map.pistes': '雪道、越野滑雪道與纜車',
+ 'tours.map.pistesDown': '雪道無法載入。地圖和路線仍可正常使用。',
+ 'tours.map.pisteKey': '雪道圖例',
+ 'tours.map.pisteDownhill': '依難度區分的滑降雪道',
+ 'tours.map.pisteGrade.novice': '入門',
+ 'tours.map.pisteGrade.easy': '初級',
+ 'tours.map.pisteGrade.intermediate': '中級',
+ 'tours.map.pisteGrade.advanced': '高級',
+ 'tours.map.pisteGrade.expert': '專家',
+ 'tours.map.pisteGrade.freeride': '野雪',
+ 'tours.map.pisteNordic': '越野滑雪道',
+ 'tours.map.pisteWinterHike': '冬季健行與雪鞋路線',
+ 'tours.map.pisteSled': '雪橇道',
+ 'tours.map.pisteLift': '纜車與索道',
+ 'tours.map.pisteStatic': '這是地圖資料,不是即時資訊:不說明是否開放或已壓雪,也不涉及積雪或雪崩。',
+ 'tours.map.pisteFullKey': 'OpenSnowMap 上的完整圖例',
'tours.import.previewTitle': 'GPX 預覽',
'tours.import.previewHint': '尚未儲存任何內容。請先檢查路線,再匯入。',
'tours.import.previewFiles': '{count} 個檔案',
diff --git a/shared/src/i18n/zh/tours.ts b/shared/src/i18n/zh/tours.ts
index dae038005..6cca7e6fc 100644
--- a/shared/src/i18n/zh/tours.ts
+++ b/shared/src/i18n/zh/tours.ts
@@ -640,6 +640,22 @@ const tours: TranslationStrings = {
'tours.planner.freeLegInfo': 'TREK 用直线连接这两个点。此段未经任何路线规划或检查。',
'tours.map.seamarks': '航标',
'tours.map.seamarksDown': '航标无法加载。地图和路线仍可正常使用。',
+ 'tours.map.pistes': '雪道、越野滑雪道和缆车',
+ 'tours.map.pistesDown': '雪道无法加载。地图和路线仍可正常使用。',
+ 'tours.map.pisteKey': '雪道图例',
+ 'tours.map.pisteDownhill': '按难度划分的滑降雪道',
+ 'tours.map.pisteGrade.novice': '入门',
+ 'tours.map.pisteGrade.easy': '初级',
+ 'tours.map.pisteGrade.intermediate': '中级',
+ 'tours.map.pisteGrade.advanced': '高级',
+ 'tours.map.pisteGrade.expert': '专家',
+ 'tours.map.pisteGrade.freeride': '野雪',
+ 'tours.map.pisteNordic': '越野滑雪道',
+ 'tours.map.pisteWinterHike': '冬季徒步和雪鞋路线',
+ 'tours.map.pisteSled': '雪橇道',
+ 'tours.map.pisteLift': '缆车和索道',
+ 'tours.map.pisteStatic': '这是地图数据,不是实时信息:不说明是否开放或已压雪,也不涉及积雪或雪崩。',
+ 'tours.map.pisteFullKey': 'OpenSnowMap 上的完整图例',
'tours.import.previewTitle': 'GPX 预览',
'tours.import.previewHint': '尚未保存任何内容。请先检查路线,再导入。',
'tours.import.previewFiles': '{count} 个文件',