From 926f394f08bfa01ba0ae4d3deaed0fb0b6cfb777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renata=20M=C3=BCller?= Date: Thu, 7 Nov 2024 21:40:49 +0100 Subject: [PATCH] Allow snapping for more wfs layers --- src/editing/Snapping.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/editing/Snapping.js b/src/editing/Snapping.js index 57b4b577743e..b8b97acfbc64 100644 --- a/src/editing/Snapping.js +++ b/src/editing/Snapping.js @@ -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