diff --git a/lightning/src/components/AccordionTest.tsx b/lightning/src/components/AccordionTest.tsx index 87d6868..ac0487d 100644 --- a/lightning/src/components/AccordionTest.tsx +++ b/lightning/src/components/AccordionTest.tsx @@ -4,9 +4,10 @@ import { ErrorBoundary, For, Show, } from 'solid-js'; import type { JSX } from 'solid-js'; import { useStationsContext } from './StationsContext'; -import { useMapContext } from './MapContext'; import { Viewport } from 'solid-map-gl'; +import { viewport, setViewport } from './map/BadassMap'; + function ChevronUpIcon(props: JSX.IntrinsicElements['svg']) { return (({ - center: { lng: -90, lat: 38, }, - zoom: 4, - bearing: 0, - pitch: 0, - }); - - return ( - - {props.children} - - ); -}; - - -export const useMapContext = () => useContext(MapContext); diff --git a/lightning/src/components/Toolbox.tsx b/lightning/src/components/Toolbox.tsx index 0d3a112..628f6ec 100644 --- a/lightning/src/components/Toolbox.tsx +++ b/lightning/src/components/Toolbox.tsx @@ -1,11 +1,9 @@ import type { JSX } from "solid-js" import type { Viewport } from "solid-map-gl"; import { mapRotate, setMapRotate } from "./map/BadassMap"; -import { useMapContext } from "./MapContext"; - +import { viewport, setViewport } from "./map/BadassMap"; export function Toolbox() { - const [viewport, { setViewport }] = useMapContext(); return (