feat: Enhance map controls and overlay visibility in project map components
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user