We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c12787 commit 098a6fcCopy full SHA for 098a6fc
src/app/sandbox/map/map-event-demo.tsx
@@ -7,8 +7,6 @@ import MapMarker from "@/components/map/map-marker";
7
function MapEventDemo() {
8
const [position, setPosition] = useState<[number, number] | undefined>();
9
const map = useMapEvent("click", (e) => {
10
- console.log(e.latlng);
11
- console.log(map);
12
setPosition([e.latlng.lat, e.latlng.lng]);
13
});
14
0 commit comments