update properties stuff

This commit is contained in:
Jake Kasper
2025-08-21 17:36:40 -04:00
parent 05011590e0
commit 5926e2933e
2 changed files with 27 additions and 10 deletions

View File

@@ -1,8 +1,7 @@
import React, { useState, useEffect, useRef } from 'react';
import React, { useState, useRef } from 'react';
import { MapContainer, TileLayer, Marker, Popup, useMapEvents } from 'react-leaflet';
import { Icon } from 'leaflet';
import 'leaflet/dist/leaflet.css';
import toast from 'react-hot-toast';
// Fix for default markers in react-leaflet
delete Icon.Default.prototype._getIconUrl;
@@ -14,7 +13,7 @@ Icon.Default.mergeOptions({
// Component to handle map clicks and update marker position
function LocationMarker({ position, setPosition }) {
const map = useMapEvents({
useMapEvents({
click(e) {
setPosition([e.latlng.lat, e.latlng.lng]);
},