Skip to content

Fix Legend Panel Bug & Style#424

Open
annehaley wants to merge 3 commits into
masterfrom
fix-legend
Open

Fix Legend Panel Bug & Style#424
annehaley wants to merge 3 commits into
masterfrom
fix-legend

Conversation

@annehaley

@annehaley annehaley commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

As I was writing the documentation for the legend panel, I found this bug. If two copies of the same layer are added to the map, the eye icon for one copy will toggle the visibility of both copies. We had two slightly different setVisibility functions, one for the selected layers panel and one for the legend panel. To resolve the bug I consolidated the logic in a new layerStore function, setLayerVisibility. Both panels now use the same function to toggle layer visibility.

Edit: I also found a few more things to fix:

  1. Use bold text to emphasize substyle names
  2. Apply a maximum precision to colormap range labels

@annehaley
annehaley requested a review from BryonLewis July 21, 2026 20:07
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploying geodatalytics with  Cloudflare Pages  Cloudflare Pages

Latest commit: 556123b
Status: ✅  Deploy successful!
Preview URL: https://92e1702c.geodatalytics.pages.dev
Branch Preview URL: https://fix-legend.geodatalytics.pages.dev

View logs

@annehaley annehaley changed the title Fix Legend Panel Bug Fix Legend Panel Bug & Style Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant