smaller Tabs; fix defaultValues for MapPrint; reduce Fill style for regionsLayer; add gis interfaces;
This commit is contained in:
@ -229,9 +229,7 @@ const MapPrint = ({
|
|||||||
|
|
||||||
<Field label="Масштаб">
|
<Field label="Масштаб">
|
||||||
<Dropdown
|
<Dropdown
|
||||||
defaultValue={printScale.toString()}
|
|
||||||
value={printScale.toString()}
|
value={printScale.toString()}
|
||||||
defaultSelectedOptions={[printScale]}
|
|
||||||
selectedOptions={[printScale]}
|
selectedOptions={[printScale]}
|
||||||
onOptionSelect={(_, data) => setPrintScale(id, data.optionValue as PrintScale)}
|
onOptionSelect={(_, data) => setPrintScale(id, data.optionValue as PrintScale)}
|
||||||
>
|
>
|
||||||
|
@ -149,7 +149,7 @@ const regionsLayerStyle = new Style({
|
|||||||
width: 1,
|
width: 1,
|
||||||
}),
|
}),
|
||||||
fill: new Fill({
|
fill: new Fill({
|
||||||
color: 'rgba(0, 0, 255, 0.1)',
|
color: 'rgba(0, 0, 255, 0.01)',
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -34,9 +34,9 @@ const TabsPane = ({
|
|||||||
minHeight: 'min-content',
|
minHeight: 'min-content',
|
||||||
borderBottom: '1px solid var(--colorNeutralShadowKey)'
|
borderBottom: '1px solid var(--colorNeutralShadowKey)'
|
||||||
}}>
|
}}>
|
||||||
<TabList selectedValue={selectedTab} onTabSelect={(_, data) => setSelectedTab(data.value)}>
|
<TabList size='small' selectedValue={selectedTab} onTabSelect={(_, data) => setSelectedTab(data.value)}>
|
||||||
{tabs.map((tab) => (
|
{tabs.map((tab) => (
|
||||||
<Tab value={tab.value}>{tab.title}</Tab>
|
<Tab key={tab.value} value={tab.value}>{tab.title}</Tab>
|
||||||
))}
|
))}
|
||||||
</TabList>
|
</TabList>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,6 +5,16 @@ import Map from "ol/Map";
|
|||||||
import { Coordinate } from "ol/coordinate";
|
import { Coordinate } from "ol/coordinate";
|
||||||
import { Mode } from "../store/map";
|
import { Mode } from "../store/map";
|
||||||
|
|
||||||
|
export interface IRegion {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IDistrict {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
|
||||||
export interface IFigure {
|
export interface IFigure {
|
||||||
object_id: string,
|
object_id: string,
|
||||||
figure_type_id: number,
|
figure_type_id: number,
|
||||||
|
Reference in New Issue
Block a user