From fc045abe2430530bd91cd557d669bc14887c685f Mon Sep 17 00:00:00 2001 From: popovspiridon99 Date: Thu, 25 Sep 2025 11:09:10 +0900 Subject: [PATCH] put overlays over the map --- client/src/components/map/MapComponent.tsx | 320 ++++++++++----------- 1 file changed, 160 insertions(+), 160 deletions(-) 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) && (