Skip to content

Commit

Permalink
Merge pull request #9571 from camptocamp/GSGGR-117-backport-fix-featu…
Browse files Browse the repository at this point in the history
…re-loading

GSGGR-117 backport fix feature loading
  • Loading branch information
RenataMuellerC2C authored Jan 15, 2025
2 parents 3f43368 + a82bbb5 commit 4d31fc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/editing/Snapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ EditingSnappingService.$inject = [
];
// The MIT License (MIT)
//
// Copyright (c) 2016-2024 Camptocamp SA
// Copyright (c) 2016-2025 Camptocamp SA
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
Expand Down 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 4d31fc0

Please sign in to comment.