From 52bd6228bca5fd39f0bab0133ce3fd3fc3b46c74 Mon Sep 17 00:00:00 2001 From: Jake Kasper Date: Wed, 27 Aug 2025 10:32:37 -0400 Subject: [PATCH] asdfasdf --- .../Applications/ApplicationExecutionModal.js | 31 +++++++++++++------ frontend/src/components/Maps/PropertyMap.js | 17 ++++++++-- 2 files changed, 35 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/Applications/ApplicationExecutionModal.js b/frontend/src/components/Applications/ApplicationExecutionModal.js index 13e6cb3..dff6bd5 100644 --- a/frontend/src/components/Applications/ApplicationExecutionModal.js +++ b/frontend/src/components/Applications/ApplicationExecutionModal.js @@ -339,16 +339,27 @@ const ApplicationExecutionModal = ({ application, propertyDetails, onClose, onCo

Application Area & GPS Track

- s.id) || []} - mode="execution" - gpsTrack={gpsTrack} - currentLocation={currentLocation} - center={mapCenter} - zoom={mapCenter ? 16 : 15} - /> + {sections.length > 0 ? ( + s.id) || []} + mode="execution" + gpsTrack={gpsTrack} + currentLocation={currentLocation} + center={mapCenter} + zoom={mapCenter ? 16 : 15} + /> + ) : ( +
+
+
Loading map...
+
+ Sections: {sections.length}, Center: {mapCenter ? 'Set' : 'Not set'} +
+
+
+ )}
diff --git a/frontend/src/components/Maps/PropertyMap.js b/frontend/src/components/Maps/PropertyMap.js index 5887dcd..41da970 100644 --- a/frontend/src/components/Maps/PropertyMap.js +++ b/frontend/src/components/Maps/PropertyMap.js @@ -93,6 +93,17 @@ const PropertyMap = ({ currentLocation = null, showTrackPoints = true }) => { + + // Debug logging + console.log('PropertyMap render:', { + center, + zoom, + sections: sections.length, + selectedSections, + mode, + gpsTrack: gpsTrack.length, + currentLocation + }); const [isDrawing, setIsDrawing] = useState(false); const [currentPolygon, setCurrentPolygon] = useState([]); const [selectedSection, setSelectedSection] = useState(null); @@ -354,10 +365,10 @@ const PropertyMap = ({ className="h-full w-full rounded-lg" ref={mapRef} > - {/* Use satellite imagery for application planning */} + {/* Use OpenStreetMap as fallback for better reliability */} {/* Drawing handler */}