Skip to content

Bugfix 2410 drawing should be editable when reopened#227

Merged
pakb merged 4 commits intodevelopfrom
bugfix-2410-drawing-should-be-editable-when-reopened
Jun 20, 2022
Merged

Bugfix 2410 drawing should be editable when reopened#227
pakb merged 4 commits intodevelopfrom
bugfix-2410-drawing-should-be-editable-when-reopened

Conversation

@jedef
Copy link
Contributor

@jedef jedef commented Jun 10, 2022

The bug was due to a call to the measure manager in the drawing module, in which it was undefined. Tof fix it, the measure manager was moved to the Drawing Layer, so that it can also be called when adding a saved KML Layer. It was also added in the map KML Layer.

Test link

jedef added 2 commits June 10, 2022 10:24
-Moved MeasureManager from DrawingMeasureInteraction.vue to DrawingModule.vue,
so that Overlays can also be managed for imported KML layers.
-Features from imported KML layers can now also be deleted
-New drawabort event, so that overlays are correctly cleared when the drawing
is aborted
The Measure Manager moved to utils and also added to OpenLayersKMLLayer
so that the Overlays also show up when not in drawing mode.
@jedef jedef requested a review from pakb June 10, 2022 08:33
@github-actions github-actions bot added the bug label Jun 10, 2022
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

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

Could you add a test that make sure this is always enabled in the future?

Also I think there's something fishy when editing a marker, I re-edited a KML with a marker and changed its color, and the icon disapeared (it unselected which icon was shown, when I selected another one from the UI it came back)

Comment on lines +1 to +6
/**
* Handels the overlays that are shown on top of a each measure drawing
*
* It is used in the Drawing module as well as in the map KMLLayer, as the drawing is displayed with
* a KML Layer when outside of the drawing mode.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

you can move that a couple lines below (just before the component declaration)

jedef added 2 commits June 13, 2022 14:03
- test to validate that features from imported KML layers are correctly
  loaded and can be deleted
- test to check that measure overlays are cleared when drawing is
  aborted
@jedef jedef force-pushed the bugfix-2410-drawing-should-be-editable-when-reopened branch from 1361990 to cc2483e Compare June 15, 2022 15:21
@jedef jedef requested a review from pakb June 15, 2022 15:42
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

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

🚀

@pakb pakb merged commit a12f5df into develop Jun 20, 2022
@pakb pakb deleted the bugfix-2410-drawing-should-be-editable-when-reopened branch June 20, 2022 11:56
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