nozzles still
This commit is contained in:
@@ -274,6 +274,9 @@ router.get('/:id', validateParams(idParamSchema), async (req, res, next) => {
|
||||
// @access Private
|
||||
router.post('/', async (req, res, next) => {
|
||||
try {
|
||||
console.log('Equipment creation request body:', req.body);
|
||||
console.log('User ID:', req.user.id);
|
||||
|
||||
const {
|
||||
equipmentTypeId,
|
||||
categoryId,
|
||||
|
||||
@@ -390,6 +390,25 @@ const PropertyMap = ({
|
||||
);
|
||||
})}
|
||||
|
||||
{/* Debug: Add a test polygon to see if polygons work at all */}
|
||||
{property?.latitude && property?.longitude && (
|
||||
<Polygon
|
||||
positions={[
|
||||
[property.latitude + 0.001, property.longitude + 0.001],
|
||||
[property.latitude + 0.001, property.longitude - 0.001],
|
||||
[property.latitude - 0.001, property.longitude - 0.001],
|
||||
[property.latitude - 0.001, property.longitude + 0.001]
|
||||
]}
|
||||
pathOptions={{
|
||||
fillColor: 'red',
|
||||
fillOpacity: 0.8,
|
||||
color: 'red',
|
||||
weight: 3,
|
||||
opacity: 1,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* Current polygon being drawn */}
|
||||
{currentPolygon.length > 0 && (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user