Skip to content

Commit

Permalink
fix: exceeded upstash daily request limit with nearby buses. disabled…
Browse files Browse the repository at this point in the history
… for now
  • Loading branch information
david-abell committed Apr 15, 2024
1 parent affd6e2 commit eefd7a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Map/MapContentLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { Position } from "@turf/helpers";
import MarkerClusterGroup from "./MarkerClusterGroup";
import StopMarker from "./StopMarker";
import StopPopup from "./StopPopup";
import useVehicleUpdates from "@/hooks/useVehicleUpdates";
// import useVehicleUpdates from "@/hooks/useVehicleUpdates";
import { Button } from "../ui/button";
import { TripHandler } from "@/pages";
import LiveText from "../LiveText";
Expand Down Expand Up @@ -194,7 +194,7 @@ function MapContentLayer({
const { realtimeScheduledByTripId, addedTripStopTimes } =
useTripUpdates(tripId);

const { vehicleUpdates } = useVehicleUpdates(mapCenter, mapKM);
// const { vehicleUpdates } = useVehicleUpdates(mapCenter, mapKM);

const realtimeTrip = useMemo(
() => !!tripId && realtimeScheduledByTripId.get(tripId),
Expand Down Expand Up @@ -299,7 +299,7 @@ function MapContentLayer({
</LayerGroup>
</LayersControl.Overlay>

<LayersControl.Overlay name="Nearby buses" checked>
{/* <LayersControl.Overlay name="Nearby buses" checked>
<FeatureGroup>
{!!vehicleUpdates.length &&
vehicleUpdates.flatMap((vehicle) => {
Expand All @@ -320,7 +320,7 @@ function MapContentLayer({
);
})}
</FeatureGroup>
</LayersControl.Overlay>
</LayersControl.Overlay> */}
{/* Route stop markers */}
<LayersControl.Overlay name="Stops" checked>
<FeatureGroup ref={markerGroupRef}>
Expand Down

0 comments on commit eefd7a7

Please sign in to comment.