Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make getfeatureinfo requests not fail together #2003

Merged
merged 2 commits into from
May 20, 2024

Conversation

Grammostola
Copy link
Contributor

@Grammostola Grammostola commented May 2, 2024

Seeks to fix #2001 , in the alternative fashion.
Yes, I made getFeatureInfoUrl less robust in a recent pr and I could still remedy that function. The only place it is being used though is in the function I am proposing to change, from Promise.all to Promise.allSettled. So if getFeatureInfoUrl trips for any reason, like assuming everything is json when something isn't, that featureInfo call is discarded rather than allowed to render all concurrent featureInfo calls useless.

(The function in the PR is also somewhat rewritten for readability. I did not find it an easy read before)

@Grammostola Grammostola merged commit d4626e3 into master May 20, 2024
4 checks passed
@Grammostola Grammostola deleted the getfeatureinfo_fix branch May 20, 2024 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getFeatureInfo (for WMS layers) shows nothing perceivable if one layer does not return proper json
2 participants