diff --git a/frontend/src/pages/Properties/PropertyDetail.js b/frontend/src/pages/Properties/PropertyDetail.js index c5c0f2b..991b3ec 100644 --- a/frontend/src/pages/Properties/PropertyDetail.js +++ b/frontend/src/pages/Properties/PropertyDetail.js @@ -1289,7 +1289,7 @@ const PropertyDetail = () => { const metersPerDegLat = 111320; const dLat = (1 * 0.3048) / metersPerDegLat; // 1 ft north const coords = prev.coordinates.map(([la, ln]) => [la + dLat, ln]); - return { ...prev, coordinates }; + return { ...prev, coordinates: coords }; }); }}>▲
@@ -1300,7 +1300,7 @@ const PropertyDetail = () => { const metersPerDegLng = 111320 * Math.cos(lat * Math.PI / 180); const dLng = (1 * 0.3048) / metersPerDegLng; // 1 ft west const coords = prev.coordinates.map(([la, ln]) => [la, ln - dLng]); - return { ...prev, coordinates }; + return { ...prev, coordinates: coords }; }); }}>◀ @@ -1311,7 +1311,7 @@ const PropertyDetail = () => { const metersPerDegLng = 111320 * Math.cos(lat * Math.PI / 180); const dLng = (1 * 0.3048) / metersPerDegLng; // 1 ft east const coords = prev.coordinates.map(([la, ln]) => [la, ln + dLng]); - return { ...prev, coordinates }; + return { ...prev, coordinates: coords }; }); }}>▶ @@ -1320,7 +1320,7 @@ const PropertyDetail = () => { if (!prev) return prev; const dLat = (1 * 0.3048) / 111320; // 1 ft south const coords = prev.coordinates.map(([la, ln]) => [la - dLat, ln]); - return { ...prev, coordinates }; + return { ...prev, coordinates: coords }; }); }}>▼