diff --git a/public/index.html b/public/index.html index 2223436..60e5ead 100644 --- a/public/index.html +++ b/public/index.html @@ -2147,7 +2147,7 @@ // ============================================ // LEAFLET MAP COMPONENT // ============================================ - const WorldMap = ({ deLocation, dxLocation, onDXChange, potaSpots, mySpots, dxPaths, dxFilters, satellites, showDXPaths, showPOTA, showSatellites, onToggleSatellites }) => { + const WorldMap = ({ deLocation, dxLocation, onDXChange, potaSpots, mySpots, dxPaths, dxFilters, satellites, showDXPaths, showDXLabels, onToggleDXLabels, showPOTA, showSatellites, onToggleSatellites }) => { const mapRef = useRef(null); const mapInstanceRef = useRef(null); const tileLayerRef = useRef(null); @@ -2475,7 +2475,7 @@ }) .bindPopup(dxPopupContent) .bindTooltip(path.dxCall, { - permanent: false, + permanent: showDXLabels, direction: 'top', offset: [0, -8], className: 'dx-tooltip' @@ -2494,7 +2494,7 @@ }) .bindPopup(spotterPopupContent) .bindTooltip(path.spotter, { - permanent: false, + permanent: showDXLabels, direction: 'top', offset: [0, -6], className: 'dx-tooltip' @@ -2507,7 +2507,7 @@ } }); } - }, [dxPaths, dxFilters, showDXPaths]); + }, [dxPaths, dxFilters, showDXPaths, showDXLabels]); // Update POTA markers useEffect(() => { @@ -2679,6 +2679,33 @@ )} + {/* Labels toggle button */} + {onToggleDXLabels && showDXPaths && ( + + )} + {/* Map Legend - Bottom of map */}