remove dead code
This commit is contained in:
parent
7c66edd570
commit
57361dcbdc
@ -22,14 +22,6 @@ export function FloodBoundaryLayer() {
|
|||||||
/>;
|
/>;
|
||||||
} else if (flood == "disabled") {
|
} else if (flood == "disabled") {
|
||||||
return <div></div>
|
return <div></div>
|
||||||
// do not display anything
|
|
||||||
return boundaryGeojson &&
|
|
||||||
<GeoJSON
|
|
||||||
data={boundaryGeojson}
|
|
||||||
style={{color: '#0f0', fill: false, weight: 1}} />
|
|
||||||
} else {
|
|
||||||
return boundaryGeojson &&
|
|
||||||
<GeoJSON data={boundaryGeojson} style={{color: '#0f0', fill: true}}/>;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,11 +62,8 @@ export const ColouringMap : FC<ColouringMapProps> = ({
|
|||||||
{/* TODO start change remaining ones */}
|
{/* TODO start change remaining ones */}
|
||||||
const [borough, setBorough] = useState<LayerEnablementState>('enabled');
|
const [borough, setBorough] = useState<LayerEnablementState>('enabled');
|
||||||
const [parcel, setParcel] = useState<LayerEnablementState>('disabled');
|
const [parcel, setParcel] = useState<LayerEnablementState>('disabled');
|
||||||
const [flood, setFlood] = useState<LayerEnablementState>('disabled');
|
|
||||||
const [conservation, setConservation] = useState<LayerEnablementState>('disabled');
|
const [conservation, setConservation] = useState<LayerEnablementState>('disabled');
|
||||||
const [historicData, setHistoricData] = useState<LayerEnablementState>('disabled');
|
const [historicData, setHistoricData] = useState<LayerEnablementState>('disabled');
|
||||||
const [creative, setCreative] = useState<LayerEnablementState>('disabled');
|
|
||||||
const [housing, setHousing] = useState<LayerEnablementState>('disabled');
|
|
||||||
{/* TODO end */}
|
{/* TODO end */}
|
||||||
const [position, setPosition] = useState(initialMapViewport.position);
|
const [position, setPosition] = useState(initialMapViewport.position);
|
||||||
const [zoom, setZoom] = useState(initialMapViewport.zoom);
|
const [zoom, setZoom] = useState(initialMapViewport.zoom);
|
||||||
@ -128,15 +125,6 @@ export const ColouringMap : FC<ColouringMapProps> = ({
|
|||||||
[parcel],
|
[parcel],
|
||||||
)
|
)
|
||||||
|
|
||||||
const floodSwitch = useCallback(
|
|
||||||
(e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
const newFlood = (flood === 'enabled')? 'disabled' : 'enabled';
|
|
||||||
setFlood(newFlood);
|
|
||||||
},
|
|
||||||
[flood],
|
|
||||||
)
|
|
||||||
|
|
||||||
const conservationSwitch = useCallback(
|
const conservationSwitch = useCallback(
|
||||||
(e) => {
|
(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -154,24 +142,6 @@ export const ColouringMap : FC<ColouringMapProps> = ({
|
|||||||
},
|
},
|
||||||
[historicData],
|
[historicData],
|
||||||
)
|
)
|
||||||
|
|
||||||
const housingSwitch = useCallback(
|
|
||||||
(e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
const newHousing = (housing === 'enabled')? 'disabled' : 'enabled';
|
|
||||||
setHousing(newHousing);
|
|
||||||
},
|
|
||||||
[housing],
|
|
||||||
)
|
|
||||||
|
|
||||||
const creativeSwitch = useCallback(
|
|
||||||
(e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
const newCreative = (creative === 'enabled')? 'disabled' : 'enabled';
|
|
||||||
setCreative(newCreative);
|
|
||||||
},
|
|
||||||
[creative],
|
|
||||||
)
|
|
||||||
{/* TODO end */}
|
{/* TODO end */}
|
||||||
|
|
||||||
const categoryMapDefinitions = useMemo(() => categoryMapsConfig[category], [category]);
|
const categoryMapDefinitions = useMemo(() => categoryMapsConfig[category], [category]);
|
||||||
|
Loading…
Reference in New Issue
Block a user