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) : ''} - - - - - - - - - - - ); - }} - */} );