Skip to content

[fix] icon layer - render default icon in case svgIconUrl loading fails - #3204

Merged
igorDykhta merged 3 commits into
masterfrom
igr/icon-layer-fallback
Sep 3, 2025
Merged

[fix] icon layer - render default icon in case svgIconUrl loading fails#3204
igorDykhta merged 3 commits into
masterfrom
igr/icon-layer-fallback

Conversation

@igorDykhta

Copy link
Copy Markdown
Collaborator

Probably for #3062

  • icon layer - render default icon in case svgIconUrl loading fails

Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the icon layer to render default icons when SVG icon URL loading fails, addressing issue #3062.

  • Enhanced error handling for SVG icon URL fetching with proper HTTP response status checking
  • Added fallback mechanism to set empty iconGeometry when fetching fails or fetch API is unavailable
  • Removed conditional rendering check that prevented fallback icon display

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/layers/src/icon-layer/icon-layer.ts
Comment thread src/layers/src/icon-layer/icon-layer.ts Outdated
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
@igorDykhta
igorDykhta merged commit 2005927 into master Sep 3, 2025
8 checks passed
@igorDykhta
igorDykhta deleted the igr/icon-layer-fallback branch September 3, 2025 21:40
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.

3 participants