Skip to content
Snippets Groups Projects
Commit 3fecda6c authored by HeJ's avatar HeJ
Browse files

assembly map editing: individual styles for existing assemblies

w/ indication if assembly position has been published or not
parent 1e1b1d1f
Branches
Tags 6.10.6
No related merge requests found
......@@ -132,11 +132,28 @@
{% endif %}
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) {
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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment