Commit 3a0b83f3 authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

Add new rule for the geojson output format for ATMO data

parent 9e1ce589
......@@ -152,6 +152,12 @@ export class ResourceDownloadItemComponent implements OnInit {
`${this.format.mapServerType}`;
const projectionAndBbox = this.getProjectionAndBbox(this.format);
if (Array.isArray(this.metadata.providers) && this.metadata.providers[0].match(/ATMO/g)) {
if (this.format.mapServerType.match(/application\/json/)) {
outputFormat = `&${this.labelFormat[this.resource.type]}=GEOJSON`;
}
}
const baseParameters = this.resource.parametersUrl ? `?${this.resource.parametersUrl}` : '';
queryableUrl += baseParameters +
layer +
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment