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: improved facility symbol handling (DHIS2-14438) #2423

Merged
merged 2 commits into from
Jan 16, 2023
Merged

Conversation

turban
Copy link
Contributor

@turban turban commented Jan 9, 2023

This PR will add support for SVG symbols for facility layer, and improve the symbol error handling.

Fixes: https://dhis2.atlassian.net/browse/DHIS2-14440 (in dhis2/maps-gl#517)
Fixes: https://dhis2.atlassian.net/browse/DHIS2-14438

If one or more symbols are missing, we will still show the remaining symbols on the map. A warning message about the first symbol missing is shown to the user.

The same error handling as we have for Earth Engine layers was reused. Added support for both critical and warning errors.

Two new methods was added to the Layer class:

  • onError -> if plugin (dashboard) the error will only be in the console, if not it will be handled by the specific layer
  • onErrorHidden -> Should be called when the error message is not showing anymore

After this PR:
Screenshot 2023-01-09 at 13 51 09

@cypress
Copy link

cypress bot commented Jan 9, 2023



Test summary

35 0 14 0


Run details

Project maps
Status Passed
Commit 1bb9c43
Started Jan 9, 2023 1:10 PM
Ended Jan 9, 2023 1:21 PM
Duration 10:59 💡
OS Linux Ubuntu - 22.04
Browser Electron 93

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@turban turban merged commit 2a43892 into master Jan 16, 2023
@turban turban deleted the feat/DHIS2-14440 branch January 16, 2023 15:09
dhis2-bot added a commit that referenced this pull request Jan 16, 2023
## [1.27.6](v1.27.5...v1.27.6) (2023-01-16)

### Bug Fixes

* improved facility symbol handling (DHIS2-14438) ([#2423](#2423)) ([2a43892](2a43892))
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.

2 participants