Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NatAtlas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Köbben, Barend (UT-ITC)
NatAtlas
Commits
c94b998a
Commit
c94b998a
authored
9 years ago
by
kobben
Browse files
Options
Downloads
Patches
Plain Diff
repaired accidental bg removal
parent
73c8f387
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/NatAtlas.js
+10
-9
10 additions, 9 deletions
js/NatAtlas.js
with
10 additions
and
9 deletions
js/NatAtlas.js
+
10
−
9
View file @
c94b998a
...
...
@@ -255,11 +255,10 @@ function setMessage(messageStrs, messageType) {
/**
* Create map menus from metadata json object
*
* @param MD : the metadata JSON object
* Create map menus
* from MD = the global metadata object for maps
*/
function
showMapGroups
(
MD
)
{
function
showMapGroups
()
{
hideCompareMap
()
;
//fold open div:
...
...
@@ -327,11 +326,11 @@ function showMapDates(mapGroup, mapSubject, mapUnit) {
;
}
}
/**
* Create comparemap menus
from metadata json object
*
*
@param MD : the metadata JSON object
* Create comparemap menus
*
from MD = the global metadata object for maps to compare
*
[for now the same as the main MD]
*/
function
showCompareGroups
(
MD
)
{
function
showCompareGroups
()
{
showCompareMap
()
;
//fold open div:
...
...
@@ -389,7 +388,7 @@ function showCompareUnits(mapGroup, mapSubject) {
function
showCompareDates
(
mapGroup
,
mapSubject
,
mapUnit
)
{
//clean up open menus:
d3
.
select
(
"
#
m
Date
"
).
selectAll
(
"
input
"
).
remove
();
d3
.
select
(
"
#
c
Date
"
).
selectAll
(
"
input
"
).
remove
();
var
mapDatesList
=
d3
.
select
(
"
#cDate
"
);
for
(
i
=
0
;
i
<
MD
.
mapgroups
[
mapGroup
].
mapsubjects
[
mapSubject
].
mapunits
[
mapUnit
].
mapdates
.
length
;
i
++
)
{
mapDatesList
.
append
(
"
input
"
)
...
...
@@ -925,11 +924,13 @@ function symboliseMap(geoData, attribData, FK, mapLayer, mapgroup, mapsubject, m
toolTipShow
(
infoTextFromData
(
d
,
attribData
,
tooltipLabel
,
mapAttrib
,
mapFK
,
mapUnit
));
})
.
transition
().
duration
(
1500
)
.
attr
(
"
class
"
,
"
classedPolygon
"
)
//to avoid being treated as background!
.
style
(
"
fill
"
,
function
(
d
)
{
return
dataStats
.
dClass2Colour
(
getAttribValue
(
d
,
attribData
,
mapAttrib
,
mapFK
));
})
// fill with result from classify function
;
}
else
{
setMessage
(
[
"
Onbekend Map Type [
"
+
mapType
+
"
]
"
,
"
Unknown Map Type [
"
+
mapType
+
"
]
"
],
errorMsg
);
...
...
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