diff --git a/src/index.css b/src/index.css index 89bc496..ab7c63a 100644 --- a/src/index.css +++ b/src/index.css @@ -33,6 +33,15 @@ .maplibregl-export-control { @apply !w-[30px] !h-[30px]; + background: url('data:image/svg+xml;charset=UTF-8,'); + background-position: center; + background-repeat: no-repeat; + background-size: 70%; +} + +.mapboxgl-ctrl-top-left .mapboxgl-ctrl, +.maplibregl-ctrl-top-left .maplibregl-ctrl { + margin: 20px 0 0 20px; } .maplibregl-export-list { diff --git a/src/modules/Sidebar/RegionSelect.jsx b/src/modules/Sidebar/RegionSelect.jsx index f047e07..bdfe06f 100644 --- a/src/modules/Sidebar/RegionSelect.jsx +++ b/src/modules/Sidebar/RegionSelect.jsx @@ -79,7 +79,7 @@ export const RegionSelect = () => {
<TreeSelect - // showSearch + showSearch style={{ width: "100%" }} value={region} dropdownStyle={{ maxHeight: 400, overflow: "auto" }} @@ -88,8 +88,7 @@ export const RegionSelect = () => { treeDefaultExpandAll={false} onChange={onChange} loading={loading} - // treeNodeFilterProp="name" - // filterTreeNode={true} + treeNodeFilterProp="title" onClear={handleClear} > {data?.map((parent) => { diff --git a/src/modules/Sidebar/Sidebar.jsx b/src/modules/Sidebar/Sidebar.jsx index d1268cd..36f2dc4 100644 --- a/src/modules/Sidebar/Sidebar.jsx +++ b/src/modules/Sidebar/Sidebar.jsx @@ -14,6 +14,7 @@ import { useGridSize } from "../../stores/useGridSize"; import { api } from "../../config"; import { useRating } from "../../stores/useRating"; import { useState } from "react"; +import { useModel } from "../../stores/useModel"; const activeTablesMapper = { net_3: ["point3", "net_3"], @@ -52,6 +53,7 @@ export const Sidebar = () => { const { region } = useRegion(); const { gridSize } = useGridSize(); const { rate: rateRange } = useRating(); + const { model } = useModel(); const [isExporting, setIsExporting] = useState(false); @@ -65,6 +67,7 @@ export const Sidebar = () => { rate_from: rateRange[0], rate_to: rateRange[1], }, + method: model === "ml" ? "model" : "rate", }; if (region) {