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
No related branches found
No related tags found
No related merge requests found
...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment