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.

678 B
Raw Blame
import type { Map } from 'mapbox-gl';

import type { FerrataGroup } from './ferrataGroups';
import { type FerrataSelectHandler, useFerrataLayerGL } from './useFerrataLayerGL';

/**
 * The via ferrata layer as a mountable piece for a GL map view: it renders
 * nothing itself, the lines live on `map`. See useFerrataLayerGL for the
 * layering, the highlight and the click handling.
 */
export default function FerrataLayerGL({
  map,
  groups,
  onSelect,
  selectedId = null,
}: {
  map: Map | null;
  groups: readonly FerrataGroup[];
  onSelect: FerrataSelectHandler;
  selectedId?: string | null;
}) {
  useFerrataLayerGL(map, groups, onSelect, selectedId);
  return null;
}