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

Refactor CoordinateReferenceSystemCombo to use useProjFromEpsgIO for CRS fetching #3743

Merged
merged 4 commits into from
Feb 29, 2024

Conversation

ahennr
Copy link
Member

@ahennr ahennr commented Feb 19, 2024

Description

Use useProjFromEpsgIO of terrestris/react-util#595 and migrate CoordinateReferenceSystemCombo as function component.

Related issues or pull requests

Pull request type

  • Bugfix
  • Feature
  • Dependency updates
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe)

Do you introduce a breaking change?

  • Yes
  • No

Checklist

  • I understand and agree that the changes in this PR will be licensed under the
    BSD-2-Clause.
  • I have followed the guidelines for contributing.
  • The proposed change fits to the content of the Code of Conduct.
  • I have added or updated tests and documentation, and the test suite passes (run npm test locally).
  • I have added a screenshot/screencast to illustrate the visual output of my update.

BREAKING CHANGE: refactors CoordinateReferenceSystemCombo to use useProjFromEpsgIO for CCRS fetching
Copy link
Member

@LukasLohoff LukasLohoff left a comment

Choose a reason for hiding this comment

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

Nice! Just left a small question regarding the className

}
}, [onSelect, selected]);

const finalClassName = className ? `${className} ${className}` : className;
Copy link
Member

Choose a reason for hiding this comment

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

this looks not right, isn't className duplicated? maybe you meant defaultClassName?

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in 6dc6072

@ahennr ahennr merged commit a4d67f0 into terrestris:rg-future Feb 29, 2024
2 checks passed
@ahennr ahennr deleted the use-proj-from-epsg-io branch February 29, 2024 17:04
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.

2 participants