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

Function handleToggleDraw

src/components/MapView.tsx:380–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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") => {
383 const map = mapRef.current;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected