MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / handleLocationSelect

Function handleLocationSelect

src/components/MapView.tsx:379–379  ·  view source on GitHub ↗
(lng: number, lat: number)

Source from the content-addressed store, hash-verified

377 const handleKeyDown = (e: KeyboardEvent) => { if (e.key === "Enter" || e.key === "Escape") onCancelEditBoundary?.(); };
378 document.addEventListener("keydown", handleKeyDown);
379 return () => { editMarkersRef.current.forEach((m) => m.remove()); editMarkersRef.current = []; document.removeEventListener("keydown", handleKeyDown); };
380 }, [editBoundaryFieldId, mapLoaded, allFields, onCancelEditBoundary]);
381
382 const handleStyleChange = (style: "dark" | "satellite") => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected