From aae9d4253e209489bcc02f51a34d15f189146c7a Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Mon, 6 Apr 2015 23:14:24 +0200 Subject: [PATCH] fixes --- lib/forcegraph.js | 4 ++-- lib/map.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/forcegraph.js b/lib/forcegraph.js index 0e1dc74..4ba279c 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -115,7 +115,7 @@ define(["d3"], function (d3) { return } else if (highlight.type === "link") { - var l = linksDict[linkId(highlight.o)] + var l = linksDict[highlight.o.id] if (l) { node.classed("highlight", false) @@ -223,7 +223,7 @@ define(["d3"], function (d3) { link = vis.select("g.links") .selectAll("g.link") - .data(links, function (d) { return d.id }) + .data(intLinks, function (d) { return d.o.id }) link.exit().remove() diff --git a/lib/map.js b/lib/map.js index cac1d95..8f5f05b 100644 --- a/lib/map.js +++ b/lib/map.js @@ -118,7 +118,7 @@ define(["d3", "leaflet", "moment", "leaflet.label"], function (d3, L, moment) { if (m) m.setStyle({ fillColor: m.options.color, color: "orange", weight: 20, fillOpacity: 1, opacity: 0.7 }) } else if (highlight.type === "link") { - m = linkDict[linkId(highlight.o)] + m = linkDict[highlight.o.id] if (m) m.setStyle({ weight: 7, opacity: 1, dashArray: "10, 10" })