diff --git a/client/src/components/map/MapComponent.tsx b/client/src/components/map/MapComponent.tsx index 40d1d68..b602eb4 100644 --- a/client/src/components/map/MapComponent.tsx +++ b/client/src/components/map/MapComponent.tsx @@ -705,43 +705,69 @@ const MapComponent = ({ } -
- {!selectedRegion && - - {/* + + +
e.preventDefault()} onDrop={(e) => handleImageDrop(e, id)}> +
+ +
+ {!selectedRegion && + + {/* */} - -
- {regionsData && regionsData.map((region: IRegion) => ( - setSelectedRegion(id, region.id)} - onMouseEnter={() => { - const feature = getFeatureByEntityId(region.id, regionsLayer) + +
+ {regionsData && regionsData.map((region: IRegion) => ( + setSelectedRegion(id, region.id)} + onMouseEnter={() => { + const feature = getFeatureByEntityId(region.id, regionsLayer) - if (feature) { - regionSelect.getFeatures().push(feature) - } - }} - onMouseLeave={() => { - regionSelect.getFeatures().clear() - }} - >{region.name} - ))} -
-
- } + if (feature) { + regionSelect.getFeatures().push(feature) + } + }} + onMouseLeave={() => { + regionSelect.getFeatures().clear() + }} + >{region.name} + ))} +
+
+
} - - -
- -
-
- {selectedDistrict && selectedYear && } -
-
- -
- {selectedRegion && selectedDistrict && selectedYear && mode === 'edit' && - - } - - {!!selectedRegion && !!selectedDistrict && !!selectedYear && - - } -
- - -
e.preventDefault()} onDrop={(e) => handleImageDrop(e, id)}> -
-
- {(linesValidating || figuresValidating) && (