Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
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
thomasDOTwtf
hub
Commits
3fecda6c
Commit
3fecda6c
authored
4 months ago
by
HeJ
Browse files
Options
Downloads
Patches
Plain Diff
assembly map editing: individual styles for existing assemblies
w/ indication if assembly position has been published or not
parent
1e1b1d1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/templates/core/map.html
+19
-2
19 additions, 2 deletions
src/core/templates/core/map.html
with
19 additions
and
2 deletions
src/core/templates/core/map.html
+
19
−
2
View file @
3fecda6c
...
@@ -132,11 +132,28 @@
...
@@ -132,11 +132,28 @@
{
%
endif
%
}
{
%
endif
%
}
function
styleAssemblies
(
feature
)
{
function
styleAssemblies
(
feature
)
{
return
{
color
:
'
red
'
};
if
(
feature
.
properties
.
published
)
{
return
{
color
:
"
#CCFFCC
"
,
weight
:
2
,
}
}
else
{
return
{
color
:
"
#FFCCCC
"
,
weight
:
1
,
dashArray
:
"
4 4
"
,
dashOffset
:
"
0
"
,
}
}
}
}
function
handleAssemblyFeature
(
feature
,
layer
)
{
function
handleAssemblyFeature
(
feature
,
layer
)
{
layer
.
bindTooltip
(
'
<b>
'
+
feature
.
properties
.
slug
+
'
</b><br>
'
+
feature
.
properties
.
name
,
{
permanent
:
false
,
opacity
:
0.75
})
layer
.
bindTooltip
(
'
<b>
'
+
feature
.
properties
.
slug
+
'
</b><br>
'
+
feature
.
properties
.
name
+
(
feature
.
properties
.
published
?
''
:
'
<br>NOT PUBLISHED
'
),
{
permanent
:
false
,
opacity
:
0.75
},
)
}
}
function
loadAssemblies
(
activeFloor
)
{
function
loadAssemblies
(
activeFloor
)
{
...
...
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