Skip to content

Commit

Permalink
Merge pull request #370 from enricofer/wfs_url_issue
Browse files Browse the repository at this point in the history
wfs endpoint with param fix
  • Loading branch information
chrismayer authored Mar 25, 2024
2 parents ba60835 + 9976557 commit c4a2333
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 c4a2333

Please sign in to comment.