mirror of
https://github.com/MeshCore-Beacon/beacon-web.git
synced 2026-09-02 09:03:44 +00:00
Drop a stale doc pointer from two map comments
This commit is contained in:
@@ -39,7 +39,7 @@ interface MapViewProps {
|
||||
export function MapView({ wsManager, selectedNodeId, onSelectNode }: MapViewProps) {
|
||||
// Deep-link params, read once at mount (like the region's ?iata seed). Each setting below is seeded
|
||||
// URL -> localStorage -> default; the URL wins for this session but is never written back to
|
||||
// localStorage, so a shared link can't clobber the visitor's saved prefs. See docs/superpowers/specs.
|
||||
// localStorage, so a shared link can't clobber the visitor's saved prefs.
|
||||
const [searchParams] = useSearchParams();
|
||||
const [urlView] = useState(() => parseMapView(searchParams));
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Deep-link map view <-> URL params. Pure and maplibre-free so it stays unit-testable; mirrors the
|
||||
// region-selection.ts pattern. Inbound parsing is lenient — any invalid/unknown value is dropped so a
|
||||
// malformed link degrades to the normal view rather than breaking. See docs/superpowers/specs.
|
||||
// malformed link degrades to the normal view rather than breaking.
|
||||
import { MAP_STYLES, type NeighborLinesMode } from "./types";
|
||||
import { NODE_TYPE_NAMES } from "../../lib/node-types";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user