Cleanup (remove the tree/branch mechanism which isn't useful).

This commit is contained in:
vdv committed 2022-12-08 21:27:40 +01:00
1 parent 38224d73da
commit 21a63ec54c
5 files changed
+5 -59

No files matched your search

-6
View File
@@ -2,11 +2,8 @@ import { Grid, IconButton } from '@suid/material';
import { Feature } from 'ol';
import { Geometry } from 'ol/geom';
import { Component, createSignal, For, Show } from 'solid-js';
import { unwrap } from 'solid-js/store';
import { useI18n } from '@solid-primitives/i18n';
import CloseIcon from '@suid/icons-material/Close';
import EditIcon from '@suid/icons-material/Edit';
import { tree } from '../map';
import { Paper, Stack } from '@suid/material';
import styled from '@suid/material/styles/styled';
import Dialog from '../dialog';
@@ -29,7 +26,6 @@ export const clickHandler = (event: any) => {
caller: '<Infos/> / clickHandler',
event,
features,
tree: unwrap(tree),
});
selectedFeatures.map((feature) => feature.set('isSelected', false));
selectedFeatures = features;
@@ -42,8 +38,6 @@ export const clickHandler = (event: any) => {
feature,
id,
});
const branch = tree[id];
if (branch?.updateHandler) branch.updateHandler(feature);
});
if (features.length > 0) {
setOpen(true);