Skip to content

Commit

Permalink
Refresh snapping features after a feature has been modified, so the s…
Browse files Browse the repository at this point in the history
…napping use the new feature geometry.
  • Loading branch information
ochriste committed Aug 9, 2018
1 parent d194594 commit ba86542
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contribs/gmf/src/editing/Snapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,15 @@ exports.prototype.loadAllItems_ = function() {
};


/**
* Manually refresh all features
* @export
*/
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 ba86542

Please sign in to comment.