From 9976557219a080f25f7ec22ed463008c746a3f11 Mon Sep 17 00:00:00 2001 From: enrico ferreguti Date: Thu, 21 Mar 2024 09:53:29 +0100 Subject: [PATCH] wfs endpoint with param fix --- src/factory/Layer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/factory/Layer.js b/src/factory/Layer.js index 4afb8808..a7e891f6 100644 --- a/src/factory/Layer.js +++ b/src/factory/Layer.js @@ -199,7 +199,8 @@ export const LayerFactory = { format: new this.formatMapping[lConf.format](lConf.formatConfig), loader: (extent) => { // assemble WFS GetFeature request - let wfsRequest = lConf.url + '?service=WFS&' + + const pre = lConf.url.includes("?") ? "&" : "?" + let wfsRequest = lConf.url + pre + 'service=WFS&' + 'version=' + lConf.version + '&request=GetFeature&' + 'typename=' + lConf.typeName + '&' + 'outputFormat=' + outputFormat + '&srsname=' + lConf.projection;