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

PB-1377 : fix bug with line crossing Switzerland #1221

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

pakb
Copy link
Contributor

@pakb pakb commented Jan 24, 2025

when drawing a line crossing without stop LV95 bounds, the function that was splitting this line into in and out chunks wasn't behaving properly (it needed at least one coordinate in to work well).

I've switch the code splitting this up to use TurfJS function instead of a home-made one. Also switching to using the main TurfJS NPM entry, instead of importing each little pieces alone. Our bundler should do a good enough job of removing any part of the bigger package we don't use anyway.

Test link

when drawing a line crossing without stop LV95 bounds, the function that was splitting this line into in and out chunks wasn't behaving properly (it needed at least one coordinate in to work well).

I've switch the code splitting this up to use TurfJS function instead of a home-made one.
Also switching to using the main TurfJS NPM entry, instead of importing each little pieces alone. Our bundler should do a good enough job of removing any part of the bigger package we don't use anyway.
@github-actions github-actions bot added the bug label Jan 24, 2025
Copy link

cypress bot commented Jan 24, 2025

web-mapviewer    Run #4377

Run Properties:  status check failed Failed #4377  •  git commit 3099ffeab9: PB-1377 : fix bug with line crossing Switzerland
Project web-mapviewer
Branch Review bug-PB-1377-fix-split-if-out-of-bounds
Run status status check failed Failed #4377
Run duration 05m 56s
Commit git commit 3099ffeab9: PB-1377 : fix bug with line crossing Switzerland
Committer Pascal Barth
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 231
View all changes introduced in this branch ↗︎

Tests for review

Failed  tests/cypress/tests-e2e/drawing.cy.js • 1 failed test • e2e/electron/mobile

View Output

Test Artifacts
Drawing module tests > Drawing mode/tools > can create marker/icons and edit them Test Replay Screenshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant