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
e011cbdc
Commit
e011cbdc
authored
2 years ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
feat: Display warning status text for all valid warning status values
parent
edd71f3b
No related branches found
No related tags found
1 merge request
!12
feat: Add test page (spatial) with mapserver layer in openlayers map
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spatial/static/spatial/js/spatialMap.js
+3
-3
3 additions, 3 deletions
spatial/static/spatial/js/spatialMap.js
with
3 additions
and
3 deletions
spatial/static/spatial/js/spatialMap.js
+
3
−
3
View file @
e011cbdc
...
@@ -126,9 +126,7 @@ function initSpatialMap(lonLat, zoomLevel, mapAttribution, mapId) {
...
@@ -126,9 +126,7 @@ function initSpatialMap(lonLat, zoomLevel, mapAttribution, mapId) {
const
clickTop
=
mapTop
+
pixel
[
1
]
-
100
;
const
clickTop
=
mapTop
+
pixel
[
1
]
-
100
;
// Hide when warning status is 0
// Hide when warning status is 0
if
(
warningStatus
.
getAttribute
(
'
value
'
)
===
'
0
'
)
{
if
(
warningStatus
.
getAttribute
(
'
value
'
)
in
warningStatusText
)
{
featureInfoDiv
.
style
.
display
=
'
none
'
;
}
else
{
featureInfoDiv
.
innerHTML
=
warningStatusText
[
warningStatus
.
getAttribute
(
'
value
'
)];
featureInfoDiv
.
innerHTML
=
warningStatusText
[
warningStatus
.
getAttribute
(
'
value
'
)];
featureInfoDiv
.
style
.
display
=
'
block
'
;
featureInfoDiv
.
style
.
display
=
'
block
'
;
featureInfoDiv
.
style
.
opacity
=
"
1
"
featureInfoDiv
.
style
.
opacity
=
"
1
"
...
@@ -140,6 +138,8 @@ function initSpatialMap(lonLat, zoomLevel, mapAttribution, mapId) {
...
@@ -140,6 +138,8 @@ function initSpatialMap(lonLat, zoomLevel, mapAttribution, mapId) {
setTimeout
(
function
()
{
setTimeout
(
function
()
{
featureInfoDiv
.
style
.
opacity
=
"
0
"
;
featureInfoDiv
.
style
.
opacity
=
"
0
"
;
},
duration
);
},
duration
);
}
else
{
featureInfoDiv
.
style
.
display
=
'
none
'
;
}
}
}
}
});
});
...
...
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