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
61bce660
Commit
61bce660
authored
5 years ago
by
ext.sopra.ncastejon
Browse files
Options
Downloads
Patches
Plain Diff
mend
parent
6f2eccf4
Branches
fix-issue-157
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/dataset-detail/components/dataset-api/resources-queryable/resource-queryable/resource-queryable.component.ts
+1
-9
1 addition, 9 deletions
...ryable/resource-queryable/resource-queryable.component.ts
with
1 addition
and
9 deletions
src/app/dataset-detail/components/dataset-api/resources-queryable/resource-queryable/resource-queryable.component.ts
+
1
−
9
View file @
61bce660
...
@@ -197,22 +197,14 @@ export class ResourceQueryableComponent implements OnInit {
...
@@ -197,22 +197,14 @@ export class ResourceQueryableComponent implements OnInit {
`&typename=
${
this
.
resource
.
metadataLink
.
name
}
`
;
`&typename=
${
this
.
resource
.
metadataLink
.
name
}
`
;
}
}
// Set the dimension of the image based no the bbox aspect ratio
if
(
this
.
resource
.
type
===
linkFormats
.
wms
)
{
if
(
this
.
resource
.
type
===
linkFormats
.
wms
)
{
// Set the dimension of the image based no the bbox ratio
const
width
=
700
;
const
width
=
700
;
const
longDiff
=
this
.
metadata
.
max_east
-
this
.
metadata
.
max_west
;
const
longDiff
=
this
.
metadata
.
max_east
-
this
.
metadata
.
max_west
;
const
latDiff
=
this
.
metadata
.
max_north
-
this
.
metadata
.
max_south
;
const
latDiff
=
this
.
metadata
.
max_north
-
this
.
metadata
.
max_south
;
const
ratio
=
longDiff
/
latDiff
;
const
ratio
=
longDiff
/
latDiff
;
const
height
=
Math
.
round
(
width
*
ratio
);
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
}
`
;
this
.
queryableParameters
.
baseParameters
+=
`&WIDTH=
${
width
}
&HEIGHT=
${
height
}
`
;
console
.
log
(
this
.
queryableParameters
.
baseParameters
);
}
}
this
.
setProjection
(
this
.
selectedProjection
);
this
.
setProjection
(
this
.
selectedProjection
);
...
...
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