Skip to content

Commit

Permalink
wfs endpoint with param fix
Browse files Browse the repository at this point in the history
  • Loading branch information
enrico ferreguti committed Mar 21, 2024
1 parent ba60835 commit 9976557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/factory/Layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9976557

Please sign in to comment.