Unverified Commit 8b300ca6 authored by Marco Marinello's avatar Marco Marinello
Browse files

Introduce red icon for probelamtic schools

parent 6b0bd179
......@@ -26,6 +26,8 @@
var GeoIcon = L.Icon.extend({});
var icon = new GeoIcon({iconUrl: '/static/js/images/marker-on.png',
iconAnchor: [12, 41]});
var redicon = new GeoIcon({iconUrl: '/static/js/images/marker-red.png',
iconAnchor: [12, 41]});
map = L.map('map', {"center": L.latLng(40, 12)});
var tiles = L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
......@@ -48,7 +50,11 @@
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 %}
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