Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
web-app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
custom-apps
web-app
Commits
b301ffea
Commit
b301ffea
authored
5 years ago
by
ext.sopra.ncastejon
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue 157: images from WMS are flatten.
parent
0bd2fdf6
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!62
v2.5.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/dataset-detail/components/dataset-api/resources-queryable/resource-queryable/resource-queryable.component.ts
+20
-2
20 additions, 2 deletions
...ryable/resource-queryable/resource-queryable.component.ts
src/assets/config/config.json
+2
-2
2 additions, 2 deletions
src/assets/config/config.json
with
22 additions
and
4 deletions
src/app/dataset-detail/components/dataset-api/resources-queryable/resource-queryable/resource-queryable.component.ts
+
20
−
2
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
);
}
...
...
This diff is collapsed.
Click to expand it.
src/assets/config/config.json
+
2
−
2
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"
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment