From 18e2a6f9457413a21ddedf1875c734085378a8a4 Mon Sep 17 00:00:00 2001 From: Simon Seyock Date: Wed, 22 May 2024 13:32:44 +0200 Subject: [PATCH] feat: allow CoordinateInfo to request Feature Info in json format --- src/CoordinateInfo/CoordinateInfo.tsx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/CoordinateInfo/CoordinateInfo.tsx b/src/CoordinateInfo/CoordinateInfo.tsx index 718621454..d2f8960bc 100644 --- a/src/CoordinateInfo/CoordinateInfo.tsx +++ b/src/CoordinateInfo/CoordinateInfo.tsx @@ -21,23 +21,11 @@ export type CoordinateInfoProps = { * */ export const CoordinateInfo: FC = ({ - drillDown = true, - featureCount = 1, - fetchOpts = {}, - onError = () => undefined, - onSuccess = () => undefined, - queryLayers = [], - resultRenderer = () => <> + resultRenderer = () => <>, + ...passThroughProps }) => { - const result = useCoordinateInfo({ - drillDown, - featureCount, - fetchOpts, - onError, - onSuccess, - queryLayers, - }); + const result = useCoordinateInfo(passThroughProps); if (_isNil(result)) { return null;