lint errors
This commit is contained in:
@@ -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 };
|
||||
});
|
||||
}}>▲</button>
|
||||
<div></div>
|
||||
@@ -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 };
|
||||
});
|
||||
}}>◀</button>
|
||||
<div></div>
|
||||
@@ -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 };
|
||||
});
|
||||
}}>▶</button>
|
||||
<div></div>
|
||||
@@ -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 };
|
||||
});
|
||||
}}>▼</button>
|
||||
<div></div>
|
||||
|
||||
Reference in New Issue
Block a user