feat: Enhance map controls and overlay visibility in project map components

This commit is contained in:
2025-09-16 12:11:52 +02:00
parent e5e72b597a
commit c75982818c
4 changed files with 68 additions and 3 deletions

View File

@@ -142,6 +142,7 @@ export default function EnhancedLeafletMap({
defaultLayer = "OpenStreetMap",
activeOverlays = [],
onViewChange,
showOverlays = true,
}) {
useEffect(() => {
fixLeafletIcons();
@@ -175,7 +176,7 @@ export default function EnhancedLeafletMap({
</BaseLayer>
))}
{/* Overlay Layers */}
{mapLayers.overlays && mapLayers.overlays.map((layer, index) => (
{showOverlays && mapLayers.overlays && mapLayers.overlays.map((layer, index) => (
<Overlay
key={`overlay-${index}`}
checked={layer.checked}