MCPcopy Create free account
hub / github.com/cartesiancs/map3d / mousedown

Function mousedown

src/components/map/SelectMap.tsx:45–49  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

43
44 const map = useMapEvents({
45 mousedown(e) {
46 if (!isDrag) {
47 setFirstPoint(e.latlng);
48 }
49 },
50 mousemove(e) {
51 if (firstPoint) {
52 lastLatlngRef.current = adjustLng(e.latlng);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected