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
b301ffea
Commit
b301ffea
authored
Mar 26, 2020
by
ext.sopra.ncastejon
Browse files
Fix issue 157: images from WMS are flatten.
parent
0bd2fdf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/dataset-detail/components/dataset-api/resources-queryable/resource-queryable/resource-queryable.component.ts
View file @
b301ffea
...
...
@@ -197,6 +197,24 @@ export class ResourceQueryableComponent implements OnInit {
`&typename=
${
this
.
resource
.
metadataLink
.
name
}
`
;
}
if
(
this
.
resource
.
type
===
linkFormats
.
wms
)
{
// Set the dimension of the image based no the bbox ratio
const
width
=
700
;
const
longDiff
=
this
.
metadata
.
max_east
-
this
.
metadata
.
max_west
;
const
latDiff
=
this
.
metadata
.
max_north
-
this
.
metadata
.
max_south
;
const
ratio
=
longDiff
/
latDiff
;
const
height
=
Math
.
round
(
width
*
ratio
);
console
.
log
(
longDiff
);
console
.
log
(
latDiff
);
console
.
log
(
ratio
);
console
.
log
(
height
);
this
.
queryableParameters
.
baseParameters
+=
`&WIDTH=
${
width
}
&HEIGHT=
${
height
}
`
;
console
.
log
(
this
.
queryableParameters
.
baseParameters
);
}
this
.
setProjection
(
this
.
selectedProjection
);
if
(
this
.
resource
.
isStandard
)
{
...
...
@@ -479,13 +497,13 @@ export class ResourceQueryableComponent implements OnInit {
this
.
messageClipboardRoot
=
geosource
.
mapMessages
.
copied
;
setTimeout
(()
=>
{
this
.
messageClipboardRoot
=
geosource
.
mapMessages
.
share
;
// tslint:disable-next-line: align
// tslint:disable-next-line: align
},
2000
);
}
else
{
this
.
messageClipboard
=
geosource
.
mapMessages
.
copied
;
setTimeout
(()
=>
{
this
.
messageClipboard
=
geosource
.
mapMessages
.
share
;
// tslint:disable-next-line: align
// tslint:disable-next-line: align
},
2000
);
}
...
...
src/assets/config/config.json
View file @
b301ffea
...
...
@@ -8,10 +8,10 @@
"middlewareLegacyAuth"
:
"https://data-reloaded-dev.alpha.grandlyon.com/api/middleware-legacy/"
,
"email"
:
"http://localhost:3001"
,
"matomo"
:
"https://matomo-intothesky.alpha.grandlyon.com"
,
"elasticsearch"
:
"https://data-reloaded-dev.alpha.grandlyon.com/api/e
s-consumer-aware
"
,
"elasticsearch"
:
"https://data-reloaded-dev.alpha.grandlyon.com/api/e
lasticsearch
"
,
"catalogue"
:
"https://data-reloaded-dev.alpha.grandlyon.com/api/catalogue"
,
"reuses"
:
"https://data-reloaded-dev.alpha.grandlyon.com/api/reuses/reuses"
,
"proxyMap"
:
"https://data-reloaded-dev.alpha.grandlyon.com/api/services"
,
"proxyMap"
:
"https://data-reloaded-dev.alpha.grandlyon.com/api/
map-
services"
,
"geocoder"
:
"https://download.data.grandlyon.com/geocoding/photon"
,
"seo"
:
"/share"
},
...
...
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