Skip to content

Commit

Permalink
feat: allow CoordinateInfo to request Feature Info in json format
Browse files Browse the repository at this point in the history
  • Loading branch information
simonseyock committed May 22, 2024
1 parent f0bc9ba commit 18e2a6f
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/CoordinateInfo/CoordinateInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,11 @@ export type CoordinateInfoProps = {
*
*/
export const CoordinateInfo: FC<CoordinateInfoProps> = ({
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;
Expand Down

0 comments on commit 18e2a6f

Please sign in to comment.