From ab9ac94014d27baa1f8fd7995caef6120116e4dd Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 8 Apr 2015 10:58:05 +0200 Subject: [PATCH] map: make new/lost nodes a little more pronounced --- lib/map.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/map.js b/lib/map.js index 8f5f05b..5105b87 100644 --- a/lib/map.js +++ b/lib/map.js @@ -48,11 +48,11 @@ define(["d3", "leaflet", "moment", "leaflet.label"], function (d3, L, moment) { return lines } - var iconOnline = { color: "#1566A9", radius: 6, fillOpacity: 0.5, weight: 2, className: "stroke-first" } - var iconOffline = { color: "#D43E2A", radius: 3, fillOpacity: 0.5, weight: 1, className: "stroke-first" } - var iconLost = { color: "#D43E2A", radius: 6, fillOpacity: 0.5, weight: 1, className: "stroke-first" } - var iconAlert = { color: "#D43E2A", radius: 6, fillOpacity: 0.5, weight: 2, className: "stroke-first node-alert" } - var iconNew = { color: "#558020", radius: 6, fillOpacity: 0.5, weight: 2, className: "stroke-first" } + var iconOnline = { color: "#1566A9", fillColor: "#1566A9", radius: 6, fillOpacity: 0.5, opacity: 0.5, weight: 2, className: "stroke-first" } + var iconOffline = { color: "#D43E2A", fillColor: "#D43E2A", radius: 3, fillOpacity: 0.5, opacity: 0.5, weight: 1, className: "stroke-first" } + var iconLost = { color: "#D43E2A", fillColor: "#D43E2A", radius: 6, fillOpacity: 0.8, opacity: 0.8, weight: 1, className: "stroke-first" } + var iconAlert = { color: "#D43E2A", fillColor: "#D43E2A", radius: 6, fillOpacity: 0.8, opacity: 0.8, weight: 2, className: "stroke-first node-alert" } + var iconNew = { color: "#1566A9", fillColor: "#93E929", radius: 6, fillOpacity: 1.0, opacity: 0.5, weight: 2 } return function (config, linkScale, sidebar, router) { var self = this @@ -116,7 +116,7 @@ define(["d3", "leaflet", "moment", "leaflet.label"], function (d3, L, moment) { m = nodeDict[highlight.o.nodeinfo.node_id] if (m) - m.setStyle({ fillColor: m.options.color, color: "orange", weight: 20, fillOpacity: 1, opacity: 0.7 }) + m.setStyle({ color: "orange", weight: 20, fillOpacity: 1, opacity: 0.7, className: "stroke-first" }) } else if (highlight.type === "link") { m = linkDict[highlight.o.id]