From 9758ab65b67fdd7e4b2f94fc0ede09098f5c37fe Mon Sep 17 00:00:00 2001 From: popovspiridon99 Date: Wed, 24 Sep 2025 17:51:33 +0900 Subject: [PATCH] smaller Tabs; fix defaultValues for MapPrint; reduce Fill style for regionsLayer; add gis interfaces; --- client/src/components/map/MapPrint/MapPrint.tsx | 2 -- client/src/components/map/MapStyles.ts | 2 +- client/src/components/map/TabsPane/TabsPane.tsx | 4 ++-- client/src/interfaces/gis.ts | 10 ++++++++++ 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/client/src/components/map/MapPrint/MapPrint.tsx b/client/src/components/map/MapPrint/MapPrint.tsx index 52dc1c9..df955c0 100644 --- a/client/src/components/map/MapPrint/MapPrint.tsx +++ b/client/src/components/map/MapPrint/MapPrint.tsx @@ -229,9 +229,7 @@ const MapPrint = ({ setPrintScale(id, data.optionValue as PrintScale)} > diff --git a/client/src/components/map/MapStyles.ts b/client/src/components/map/MapStyles.ts index 3453e09..c5fbec6 100644 --- a/client/src/components/map/MapStyles.ts +++ b/client/src/components/map/MapStyles.ts @@ -149,7 +149,7 @@ const regionsLayerStyle = new Style({ width: 1, }), fill: new Fill({ - color: 'rgba(0, 0, 255, 0.1)', + color: 'rgba(0, 0, 255, 0.01)', }), }) diff --git a/client/src/components/map/TabsPane/TabsPane.tsx b/client/src/components/map/TabsPane/TabsPane.tsx index b76e45b..f96c7e8 100644 --- a/client/src/components/map/TabsPane/TabsPane.tsx +++ b/client/src/components/map/TabsPane/TabsPane.tsx @@ -34,9 +34,9 @@ const TabsPane = ({ minHeight: 'min-content', borderBottom: '1px solid var(--colorNeutralShadowKey)' }}> - setSelectedTab(data.value)}> + setSelectedTab(data.value)}> {tabs.map((tab) => ( - {tab.title} + {tab.title} ))} diff --git a/client/src/interfaces/gis.ts b/client/src/interfaces/gis.ts index 1e73b7e..fb5856a 100644 --- a/client/src/interfaces/gis.ts +++ b/client/src/interfaces/gis.ts @@ -5,6 +5,16 @@ import Map from "ol/Map"; import { Coordinate } from "ol/coordinate"; import { Mode } from "../store/map"; +export interface IRegion { + id: number + name: string +} + +export interface IDistrict { + id: number + name: string +} + export interface IFigure { object_id: string, figure_type_id: number,