import maplibregl from "maplibre-gl"; import { Layer, Map, Marker, Source } from "react-map-gl"; import { MapControlls } from "@components/PageComponents/Map/MapControlls.js"; import { useAppStore } from "@core/stores/appStore.js"; import { useDevice } from "@core/providers/useDevice.js"; import { Hashicon } from "@emeraldpay/hashicon-react"; import { MapPinIcon } from "@heroicons/react/24/outline"; export const MapPage = (): JSX.Element => { const { nodes, waypoints } = useDevice(); const { rasterSources } = useAppStore(); return (
{waypoints.map((wp) => (
))} {rasterSources.map((source, index) => ( ))} {nodes.map((n) => { if (n.data.position?.latitudeI) { return ( ); } })}
); };