Fix point filters

dev
Platon Yasev 4 years ago
parent 8f3bd0eab8
commit 8e6c05c38b

@ -22,9 +22,14 @@ export const Points = ({ rate: rateRange }) => {
["<=", rate, rateRange[1]], ["<=", rate, rateRange[1]],
]; ];
// if (activeTypes.length) { if (activeTypes.length) {
// result = ["all", result, ["in", "category", ...activeTypes]]; result = [
// } "all",
["in", ["get", "category"], ["literal", activeTypes]],
[">=", rate, rateRange[0]],
["<=", rate, rateRange[1]],
];
}
console.log(result); console.log(result);
return result; return result;

@ -66,7 +66,7 @@ export const MapPopup = ({ feature, lat, lng, onClose }) => {
onClose={onClose} onClose={onClose}
closeOnClick={false} closeOnClick={false}
> >
<div className={`min-w-[250px]`}> <div className={`min-w-[${layout.width}px]`}>
{config.map((item) => { {config.map((item) => {
const value = item.field const value = item.field
? feature.properties[item.field] ? feature.properties[item.field]

@ -34,7 +34,7 @@ export const Sidebar = () => {
<ObjectTypesSelect /> <ObjectTypesSelect />
<RatingSlider /> <RatingSlider />
<div> <div>
<Button type="primary" block className={"mt-2"}> <Button type="primary" block className={"mt-2"} disabled>
Экспорт данных Экспорт данных
</Button> </Button>
</div> </div>

Loading…
Cancel
Save