Skip to content

Commit

Permalink
add missing widget
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Oct 1, 2024
1 parent 9e316c7 commit 26e90b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/viewer/components/LegendWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import SequentialLegend from "./legend-types/Sequential";
import IntervalLegend from "./legend-types/Interval";
import { useStore } from "@tanstack/react-store";
import { mapStore, selectors } from "../mapStore";
import ImageLegend from "./legend-types/Image";

function LegendRender({ type, ...data }) {
switch (type) {
case "sequential":
return <SequentialLegend {...data} />;
case "interval":
return <IntervalLegend {...data} />;
case "wms":
return <ImageLegend {...data} />;
default:
null;
}
Expand Down

0 comments on commit 26e90b3

Please sign in to comment.