Commit 84b0c5bf authored by root's avatar root
Browse files

Fix icon set

parent 8b300ca6
......@@ -40,7 +40,7 @@
var addressPoints = [
{% for s in schools %}
{% if s.lat %}
[{{s.lat|unlocalize}}, {{s.lon|unlocalize}}, "{{s.get_absolute_url}}"],
[{{s.lat|unlocalize}}, {{s.lon|unlocalize}}, "{{s.get_absolute_url}}", {% if s.get_non_acked_alarms %}redicon{% else %}icon{% endif %}],
{% endif %}
{% endfor %}
]
......@@ -50,11 +50,7 @@
var marker = L.marker(new L.LatLng(a[0],
a[1]),
{% if s.get_non_acked_alarms %}
{icon: redicon, url: a[2]});
{% else %}
{icon: icon, url: a[2]});
{% endif %}
{icon: a[3], url: a[2]});
marker.on('click', markerClick)
markers.addLayer(marker)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment