Skip to content

Commit

Permalink
Merge pull request #9556 from camptocamp/GSGGR-117-fix-feature-loading
Browse files Browse the repository at this point in the history
Allow snapping for more wfs layers
  • Loading branch information
RenataMuellerC2C authored Jan 9, 2025
2 parents c623518 + 34fb57f commit 2841d83
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 2841d83

Please sign in to comment.