Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
custom-apps
web-app
Commits
3a0b83f3
Commit
3a0b83f3
authored
Jun 16, 2021
by
Matthieu Benoist
Browse files
Add new rule for the geojson output format for ATMO data
parent
9e1ce589
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/dataset-detail/components/dataset-downloads/resource-download-item/resource-download-item/resource-download-item.component.ts
View file @
3a0b83f3
...
...
@@ -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
+
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment