Skip to content

Commit

Permalink
fix(wfs): fix url with ?
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Jan 28, 2021
1 parent 680e7a4 commit aa7a973
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ export function formatWFSQueryString(
}`;
}

const getCapabilities = `${url}?service=WFS&request=GetCapabilities&${version}`;
let getFeature = `${url}?service=WFS&request=GetFeature&${version}&${featureTypes}&`;
const separator = url.indexOf('?') === -1 ? '?' : '&';
const getCapabilities = `${url}${separator}service=WFS&request=GetCapabilities&${version}`;
let getFeature = `${url}${separator}service=WFS&request=GetFeature&${version}&${featureTypes}&`;
getFeature += `${outputFormat}&${srs}&${cnt}&${propertyName}&${effectiveStartIndex}`;

let getpropertyvalue = `${url}?service=WFS&request=GetPropertyValue&version=${versionWfs200}&${featureTypes}&`;
Expand Down

0 comments on commit aa7a973

Please sign in to comment.