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

Function handleLocateUser

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

Source from the content-addressed store, hash-verified

399 setShowNewFieldDialog(false);
400 setDrawVertices([]);
401 const map = mapRef.current;
402 if (map) {
403 try {
404 if (map.getLayer("draw-fill")) map.removeLayer("draw-fill");
405 if (map.getLayer("draw-line")) map.removeLayer("draw-line");
406 if (map.getLayer("draw-points")) map.removeLayer("draw-points");
407 if (map.getSource("draw-preview")) map.removeSource("draw-preview");
408 if (map.getSource("draw-points")) map.removeSource("draw-points");
409 } catch {}
410 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected