Skip to content

Commit

Permalink
Comment getEditingMediaFields to copy also attach (media, pdf,etcc.) …
Browse files Browse the repository at this point in the history
…of clone of feature
  • Loading branch information
volterra79 committed Dec 11, 2024
1 parent 77381c1 commit 96bbe9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion toolboxes/toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,8 @@ export class ToolBox extends G3WObject {
feature.getGeometry().translate(deltaXY.x, deltaXY.y)
}
// set media fields to null
layer.getEditingMediaFields({}).forEach(f => feature.set(f, null));
//@since 3.9.0 Comment
//layer.getEditingMediaFields({}).forEach(f => feature.set(f, null));
/**
* evaluated geometry expression
*/
Expand Down
3 changes: 2 additions & 1 deletion utils/handleSplitFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export async function handleSplitFeature({
newFeature.setGeometry(splittedGeometry);

// set media fields to null
layer.getEditingMediaFields({}).forEach(f => newFeature.set(f, null));
//@since 3.9.0 Commented
//layer.getEditingMediaFields({}).forEach(f => newFeature.set(f, null));

feature = new Feature({ feature: newFeature });

Expand Down

0 comments on commit 96bbe9b

Please sign in to comment.