drop dead code

This commit is contained in:
Mateusz Konieczny 2023-01-19 14:11:22 +01:00
parent ed58e413e0
commit 62b4879d63
2 changed files with 1 additions and 14 deletions

View File

@ -22,16 +22,8 @@ export function ParcelBoundaryLayer() {
style={{color: '#ff0', fill: false, weight: 1}} style={{color: '#ff0', fill: false, weight: 1}}
/* minNativeZoom={17}*/ /* minNativeZoom={17}*/
/>; />;
} else if (parcel == "disabled") {
return <div></div>
// do not display anything
return boundaryGeojson &&
<GeoJSON
data={boundaryGeojson}
style={{color: '#0f0', fill: false, weight: 1}} />
} else { } else {
return boundaryGeojson && return <div></div>
<GeoJSON data={boundaryGeojson} style={{color: '#0f0', fill: true}}/>;
} }
} }

View File

@ -5,8 +5,6 @@ import 'leaflet/dist/leaflet.css';
import './map.css'; import './map.css';
import { apiGet } from '../apiHelpers'; import { apiGet } from '../apiHelpers';
import { HelpIcon } from '../components/icons';
import { Category } from '../config/categories-config';
import { initialMapViewport, mapBackgroundColor, MapTheme, LayerEnablementState } from '../config/map-config'; import { initialMapViewport, mapBackgroundColor, MapTheme, LayerEnablementState } from '../config/map-config';
import { Building } from '../models/building'; import { Building } from '../models/building';
@ -97,9 +95,6 @@ export const ColouringMap : FC<ColouringMapProps> = ({
[dataLayers], [dataLayers],
) )
const hasSelection = selectedBuildingId != undefined;
const isEdit = ['edit', 'multi-edit'].includes(mode);
return ( return (
<div className="map-container"> <div className="map-container">
<MapContainer <MapContainer