Skip to content

Commit

Permalink
Fix single cluster colour
Browse files Browse the repository at this point in the history
  • Loading branch information
lil5 committed Jan 31, 2024
1 parent 7e7ea18 commit eddd56e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/FindChain/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ export default function SideBar({
const list = [] as ListCItem[];

console.log(
"mapClickedChains: %s\tvisibleChains: %s",
mapClickedChains.length,
visibleChains.length
"mapClickedChainUIDs: %s\tvisibleChains: %s",
mapClickedChains.map((c) => c.uid).join(", "),
visibleChains.map((c) => c.uid).join(", ")
);

const uniqueVisibleChains = visibleChains.filter(
Expand Down
11 changes: 10 additions & 1 deletion frontend/src/pages/FindChain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,16 @@ export default function FindChain({ location }: { location: Location }) {
paint: {
"circle-color": [
"case",
[">", ["coalesce", ["get", "sum_open_to_new_members"], 0], 0],
[
"any",
[">", ["coalesce", ["get", "sum_open_to_new_members"], 0], 0],
[
"all",
["<", ["coalesce", ["get", "point_count_abbreviated"], 0], 2],
["has", "open_to_new_members"],
["get", "open_to_new_members"],
],
],
["rgba", 239, 149, 61, 0.6], // #ef953d
["rgba", 0, 0, 0, 0.1], // grey
],
Expand Down

0 comments on commit eddd56e

Please sign in to comment.