-
-
- Helaas, de bodemkaart is nog niet beschikbaar :(
-
-
- We proberen de bodemkaart binnenkort toe te voegen. Hou de
- website in de gaten.
-
-
-
+
+
+
+
+
+
+ {/* Soil WMS Layer */}
+ {showSoil && (
+
+
+
+ )}
+
+ {/* Selected Soil Feature Highlight */}
+ {showSoil && selectedSoilFeature && (
+
+
+
+ )}
+
+ {/* Fields Overlay */}
+ {fields && (
+
+
+
+
+ )}
+
+ {/* Popup */}
+ {showSoil && popupInfo && (
+ setPopupInfo(null)}
+ anchor="bottom"
+ maxWidth="350px"
+ >
+
+
+
+ {popupInfo.properties.first_soilname ||
+ popupInfo.properties
+ .normal_soilprofile_name ||
+ "Onbekende bodem"}
+
+ {popupInfo.properties.soilcode && (
+
+ {popupInfo.properties.soilcode}
+
+ )}
+
+
+
+ )}
+
+
+
)
}
diff --git a/fdm-app/app/tailwind.css b/fdm-app/app/tailwind.css
index c9b8a0c16..46a084c42 100644
--- a/fdm-app/app/tailwind.css
+++ b/fdm-app/app/tailwind.css
@@ -190,3 +190,22 @@
display: none;
}
+/* MapLibre Popup Close Button Fix */
+.maplibregl-popup-close-button {
+ font-size: 24px;
+ padding: 8px;
+ width: 32px;
+ height: 32px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: var(--color-foreground);
+ border-radius: 0 0.5rem 0 0.5rem;
+}
+.maplibregl-popup-close-button:hover {
+ background-color: var(--color-muted);
+}
+.maplibregl-popup-content {
+ border-radius: 0.5rem;
+ padding: 0;
+}
\ No newline at end of file