Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSGGR-117 backport fix feature loading #9571

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading