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 67f3965 commit 889918d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions contribs/gmf/src/directives/editfeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ gmf.EditfeatureController.prototype.save = function() {
this.dirty = false;
this.pending = false;
this.handleEditFeature_(response);
this.gmfSnapping_.refresh();
},
() => {
this.showServerError = true;
Expand Down
9 changes: 9 additions & 0 deletions contribs/gmf/src/services/snapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,15 @@ gmf.Snapping.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

0 comments on commit 889918d

Please sign in to comment.