Skip to content

Enhance legend display logic and add error handling for images - #84

Open
pollardld wants to merge 2 commits into
mainfrom
oceanstory-legends
Open

pollardld wants to merge 2 commits into
mainfrom
oceanstory-legends

Conversation

@pollardld

@pollardld pollardld commented Sep 15, 2026

Copy link
Copy Markdown
Member

Improve the handling and display of map layer legends in Ocean Stories.

  • Adds logic to display "Legend not available" when both the url and label are missing, or to display only the available part if one is missing
  • Wrapped legend images in a container div and added an onerror handler to show "Legend not available" if the image fails to load.

@pollardld pollardld self-assigned this Sep 15, 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