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

8536 Resolving measure plugin draw conflicts #8678

Merged

Conversation

alex-fko
Copy link
Contributor

Description

Measure tool recently was extended to support Cesium viewer and refactored to take advantage of lazy-loading of the components. This led to side effects when Openlayers/Leaflet measure did not enable properly upon tool activation and was not disabled when measure tool is deactivated.
This PR provides minor changes to properly initialize draw mode and deactivate it whenever components are mounted or unmounted.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?
#8536

What is the new behavior?
Tool is properly activated and deactivated for Openlayers and Leaflet viewers.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@tdipisa tdipisa added this to the 2022.02.01 milestone Oct 11, 2022
@tdipisa tdipisa requested a review from allyoucanmap October 11, 2022 11:05
@allyoucanmap allyoucanmap merged commit e4bbfe7 into geosolutions-it:master Oct 17, 2022
@allyoucanmap
Copy link
Contributor

@ElenaGallo please test on dev and let us know if we can backport the PR on the stable branch 2022.02.xx, thanks

@ElenaGallo
Copy link
Contributor

Test passed on DEV, @alex-fko please backport to 2022.02.xx. Thanks

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.

4 participants