From 67cfd16efbde0c70114f55af6f123ffb898e889d Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Fri, 30 Dec 2022 21:12:46 +0100 Subject: [PATCH] Bug fix... --- src/components/infos/Infos.tsx | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/src/components/infos/Infos.tsx b/src/components/infos/Infos.tsx index 2407cc2..e63067e 100644 --- a/src/components/infos/Infos.tsx +++ b/src/components/infos/Infos.tsx @@ -28,6 +28,7 @@ const level2Key = (feature: Feature) => feature.get('context').trkId; export const clickHandler = (event: any) => { + hierarchy = {}; const pixel = [event.originalEvent.x, event.originalEvent.y]; const features = event.map.getFeaturesAtPixel(pixel, { hitTolerance: 30 }); selectedFeatures.map((feature) => feature.set('isSelected', false)); @@ -158,33 +159,6 @@ const Infos: Component<{}> = (props) => { sx={{ width: 'calc(100% - 5px)' }} > - {/* - {(feature) => { - const geometry = feature.getGeometry(); - const length = geometry - ? getLength(geometry, { projection: 'EPSG:4326' }) - : undefined; - return ( - - - - {feature.get('getTitle') - ? feature.get('getTitle')() - : t(feature.get('type'))} - {length ? formatLength(length) : ''} - - - - - - - - - - - ); - }} - */} );