Skip to content

Commit

Permalink
Merge pull request #4111 from camptocamp/refresh-snaping-features-aft…
Browse files Browse the repository at this point in the history
…er-edit

Refresh snapping features after a feature has been modified, so the s…
  • Loading branch information
ochriste committed Aug 10, 2018
2 parents ccd47b7 + ffd3483 commit 4dc2ef9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contribs/gmf/src/editing/Snapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,14 @@ exports.prototype.loadAllItems_ = function() {
};


/**
* Manually refresh all features
*/
exports.prototype.refresh = function() {
this.loadAllItems_();
};


/**
* For a specific cache item, issue a new WFS GetFeatures request. The returned
* features set in the item collection of features (they replace any existing
Expand Down
1 change: 1 addition & 0 deletions contribs/gmf/src/editing/editFeatureComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ exports.Controller_.prototype.save = function() {
this.dirty = false;
this.pending = false;
this.handleEditFeature_(response);
this.gmfSnapping_.refresh();
},
(response) => {
this.showServerError = true;
Expand Down

0 comments on commit 4dc2ef9

Please sign in to comment.