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

Various fixes #570

Merged
merged 2 commits into from
Feb 3, 2020
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class CapabilitiesService {
const params = new HttpParams({
fromObject: {
request: 'GetCapabilities',
service,
service: service.toUpperCase(),
version: version || '1.3.0',
_i: 'true'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class WMSDataSource extends DataSource {
const baseUrl = this.options.url.replace(/\?$/, '');
const params = [
'REQUEST=GetLegendGraphic',
'SERVICE=wms',
'SERVICE=WMS',
'FORMAT=image/png',
'SLD_VERSION=1.1.0',
`VERSION=${sourceParams.VERSION || '1.3.0'}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ export function formatWFSQueryString(
}`;
}

const getCapabilities = `${url}?service=wfs&request=GetCapabilities&${version}`;
let getFeature = `${url}?service=wfs&request=GetFeature&${version}&${featureTypes}&`;
const getCapabilities = `${url}?service=WFS&request=GetCapabilities&${version}`;
let getFeature = `${url}?service=WFS&request=GetFeature&${version}&${featureTypes}&`;
getFeature += `${outputFormat}&${srs}&${cnt}&${propertyName}`;

let getpropertyvalue = `${url}?service=wfs&request=GetPropertyValue&version=${versionWfs200}&${featureTypes}&`;
let getpropertyvalue = `${url}?service=WFS&request=GetPropertyValue&version=${versionWfs200}&${featureTypes}&`;
getpropertyvalue += `&${cnt}&${valueReference}`;

return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ export class FeatureDetailsComponent {

if (allowedFieldsAndAlias) {
Object.keys(allowedFieldsAndAlias).forEach(field => {
if (feature.properties[field]) {
properties[allowedFieldsAndAlias[field]] = feature.properties[field];
}
properties[allowedFieldsAndAlias[field]] = feature.properties[field];
});
return properties;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export class StoredQueriesReverseSearchSource extends SearchSource
return new HttpParams({
fromObject: Object.assign(
{
service: 'wfs',
service: 'WFS',
version: '1.1.0',
request: 'GetFeature',
storedquery_id: this.storedQueriesOptions.storedquery_id,
Expand Down