Skip to content

Bugfix 2421 fix kml update when closing drawing#229

Merged
pakb merged 8 commits intodevelopfrom
bugfix-2421-fix-kml-update-when-closing-drawing
Jul 6, 2022
Merged

Bugfix 2421 fix kml update when closing drawing#229
pakb merged 8 commits intodevelopfrom
bugfix-2421-fix-kml-update-when-closing-drawing

Conversation

@jedef
Copy link
Contributor

@jedef jedef commented Jun 20, 2022

The mapviewer should now better handle the closing of the drawing mode. When the drawing mode is leaved, the KML is now saved immediately, so that it is saved before it is loaded. This PR also tries to fix an issue where the Measure Overlays would not be correctly updated when closing the drawing.

Test link

@jedef jedef requested a review from pakb June 20, 2022 12:54
@github-actions github-actions bot added the bug label Jun 20, 2022
@jedef jedef force-pushed the bugfix-2421-fix-kml-update-when-closing-drawing branch from 6577f62 to 0754573 Compare June 20, 2022 13:00
@pakb
Copy link
Contributor

pakb commented Jun 24, 2022

There's a e2e test that fails regarding drawing overlay :

1) Measure Overlays handling
--
584 | Check correct passover from drawingLayer to kmlLayer when closing drawing:
585 | AssertionError: Timed out retrying after 10000ms: Expected to find element: `[data-cy="button-toggle-visibility-layer-KML\|https://sys-public.dev.bgdi.ch/api/kml/files/1234_fileId\|Drawing@adminId=1234_adminId"]`, but never found it.

That's some weird CSS selector, maybe we should change how an external KML ID is generated...

@jedef jedef force-pushed the bugfix-2421-fix-kml-update-when-closing-drawing branch from daebe25 to 14f3bc5 Compare June 24, 2022 14:53
@jedef jedef requested a review from pakb June 30, 2022 10:19
jedef added 7 commits July 6, 2022 09:53
- KML should now already be saved when the KML Layer is loaded
- Measure manager should now correctly remove all overlays handeled by
  him when the drawing is closed
- Correctly set isDrawingEmpty when opening draw mode
- Wait for end of kml update before the drawing is closed
- added a loading screen when opening and closing the drawing mode
- To avoid a mismatch between the language of the site and the language
  of i18n, the language was explicitly assigned to i18n
Comment abortToggleOverlay variable, added the z-indexes in
variables.scss, changed the watcher function in DrawingModule to async,
and some other minor fixes
also add comments for the use of "this" and "i18n" in a cypress test
case.
@jedef jedef force-pushed the bugfix-2421-fix-kml-update-when-closing-drawing branch from 5d980dc to 94757f3 Compare July 6, 2022 07:55
@jedef jedef force-pushed the bugfix-2421-fix-kml-update-when-closing-drawing branch from 94757f3 to 6dff9bd Compare July 6, 2022 08:46
@pakb pakb merged commit dae964b into develop Jul 6, 2022
@pakb pakb deleted the bugfix-2421-fix-kml-update-when-closing-drawing branch July 6, 2022 14:02
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.

2 participants