diff --git a/src/components/map/Map.tsx b/src/components/map/Map.tsx index 1fcbfc8..f9d4d10 100644 --- a/src/components/map/Map.tsx +++ b/src/components/map/Map.tsx @@ -37,6 +37,7 @@ import MouseWheelZoom from 'ol/interaction/MouseWheelZoom'; import DragZoom from 'ol/interaction/DragZoom'; import Select from 'ol/interaction/Select'; import Layer from 'ol/layer/Layer'; +import { selectedStyle } from './selectedStyle'; const [getState, setState] = createSignal({ lon: 0, @@ -156,6 +157,7 @@ const Map: Component = () => { }); features.map((feature) => { const id = feature.get('id'); + feature.set('isSelected', !feature.get('isSelected')); console.log({ caller: 'clickHandler / feature', event, feature, id }); const branch = tree[id]; if (branch?.updateHandler) branch.updateHandler(feature);