drop dead code
This commit is contained in:
parent
ed58e413e0
commit
62b4879d63
@ -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}}/>;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user