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 */}