Checkboxen switch

This commit is contained in:
ISA
2024-04-23 09:03:31 +02:00
parent 0ca9db9374
commit b218706845
3 changed files with 44 additions and 56 deletions

View File

@@ -910,7 +910,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
//-------------------------------------------------------------------------------------------------------------------------
//GMA Layer
const [layerGMA, setLayerGMA] = useState([]);
const [showGMA, setShowGMA] = useState(false);
const [showGMA, setShowGMA] = useState(true);
useEffect(() => {
if (!map || !GisStationsStaticDistrict) return;
@@ -977,7 +977,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
//-------------------------------------------------------------------------------------------------------------------------
//TALAS Layer
const [layerTALAS, setLayerTALAS] = useState([]);
const [showTALAS, setShowTALAS] = useState(false);
const [showTALAS, setShowTALAS] = useState(true);
useEffect(() => {
if (!map || !GisStationsStaticDistrict) return;