diff --git a/backend/src/routes/nozzles.js b/backend/src/routes/nozzles.js index 6bb20cc..6aad5a0 100644 --- a/backend/src/routes/nozzles.js +++ b/backend/src/routes/nozzles.js @@ -200,7 +200,7 @@ router.get('/', async (req, res, next) => { FROM user_equipment ue JOIN equipment_types et ON ue.equipment_type_id = et.id JOIN equipment_categories ec ON et.category_id = ec.id - WHERE ue.user_id = $1 AND ec.name = 'Nozzle' + WHERE ue.user_id = $1 AND (ec.name = 'Nozzle' OR ec.name ILIKE '%nozzle%' OR ue.orifice_size IS NOT NULL) ORDER BY ue.manufacturer, ue.custom_name`, [req.user.id] ); diff --git a/frontend/src/components/Maps/PropertyMap.js b/frontend/src/components/Maps/PropertyMap.js index 4c6e2b6..69d8088 100644 --- a/frontend/src/components/Maps/PropertyMap.js +++ b/frontend/src/components/Maps/PropertyMap.js @@ -373,6 +373,7 @@ const PropertyMap = ({ return null; } + // Your coordinates are already in [lng, lat] format, so we need to swap them for Leaflet const coordinates = polygonData.coordinates[0].map(([lng, lat]) => [lat, lng]); console.log('Mapped coordinates:', coordinates);