(latlng: LatLng)
| 37 | const lastLatlngRef = useRef<LatLng | null>(null); |
| 38 | |
| 39 | const adjustLng = (latlng: LatLng): LatLng => { |
| 40 | const adjustedLng = ((((latlng.lng + 180) % 360) + 360) % 360) - 180; |
| 41 | return new L.LatLng(latlng.lat, adjustedLng); |
| 42 | }; |
| 43 | |
| 44 | const map = useMapEvents({ |
| 45 | mousedown(e) { |
no outgoing calls
no test coverage detected