Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSWeb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSWeb
Commits
ab64ee28
Commit
ab64ee28
authored
1 year ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Reintroduce WMS language support
parent
5fa2518b
Branches
Branches containing commit
No related tags found
1 merge request
!20
Develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spatial/static/spatial/js/gridmap.js
+2
-2
2 additions, 2 deletions
spatial/static/spatial/js/gridmap.js
with
2 additions
and
2 deletions
spatial/static/spatial/js/gridmap.js
+
2
−
2
View file @
ab64ee28
...
...
@@ -182,8 +182,8 @@ async function initGridMap(inputModelId, wmsURL, mapAttribution) {
// Get layers from WMS service
let
parser
=
new
ol
.
format
.
WMSCapabilities
();
//console.info(mapserverURL + modelId + "?service=WMS&version=1.3.0&request=GetCapabilities");
//
let response = await fetch(wmsURL + "?service=WMS&version=1.3.0&request=GetCapabilities&language=" + settings.currentLanguage);
let
response
=
await
fetch
(
wmsURL
+
"
?service=WMS&request=GetCapabilities
"
);
let
response
=
await
fetch
(
wmsURL
+
"
?service=WMS&version=1.3.0&request=GetCapabilities&language=
"
+
settings
.
currentLanguage
);
//
let response = await fetch(wmsURL + "?service=WMS&request=GetCapabilities
&language={{language.code}}
");
//console.info(wmsURL + "?service=WMS&request=GetCapabilities&language=en");
//console.info(response.status); // Response is 200 even if a model doesn't exist on the mapserver
let
txt
=
await
response
.
text
();
...
...
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