All files / applications/go-by-transit/src/view/nearby/util/mapbox routeInfo.ts

100% Statements 3/3
100% Branches 2/2
100% Functions 3/3
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                        6x 7x   3x    
import type { Map } from "mapbox-gl";
import type { RouteConfigRoute } from "@overworld/trimet-client";
import { showRouteInfo as showInfo } from "@overworld/maps/transit";
import { getRouteGeometry } from "./routeLines";
 
export { highlightRouteInfoStop } from "@overworld/maps/transit";
 
export function showRouteInfo(
  map: Map,
  route: RouteConfigRoute,
  onError: () => void,
  onStopClick?: (stopId: number) => void,
  canFit = () => true,
  isActive = () => true
) {
  return showInfo(map, route, onError, getRouteGeometry, onStopClick, canFit, isActive);
}