Skip to content

Commit

Permalink
Allow snapping for more wfs layers
Browse files Browse the repository at this point in the history
  • Loading branch information
RenataMuellerC2C committed Dec 19, 2024
1 parent 5f3dd06 commit 926f394
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/editing/Snapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,13 @@ EditingSnappingService.prototype.loadItemFeatures_ = function (item) {
const featureRequest = xmlSerializer.serializeToString(featureRequestXml);
const url = item.wfsConfig.url;
item.requestDeferred = this.q_.defer();
const headers = {
'Content-Type': 'text/xml',
};
this.http_
.post(url, featureRequest, {
timeout: item.requestDeferred.promise,
headers: headers,
})
.then((response) => {
// (1) Unset requestDeferred
Expand Down

0 comments on commit 926f394

Please sign in to comment.