Skip to content

Commit 9ffc9ce

Browse files
committed
Stops rehighlight in map view
1 parent 0800aa0 commit 9ffc9ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/js/route_view.js

+2
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ d3.json("./data/routes3.json", function(data) {
335335
.style("fill", function(d,i){
336336

337337
if(d.name == clicked_stop_name){
338+
map_highlightStops([clicked_stop_name]);
338339
svg.append("text")
339340
.attr("id", "tooltip5")
340341
.attr("x", d3.select(this).attr("cx"))
@@ -418,6 +419,7 @@ d3.json("./data/routes3.json", function(data) {
418419
d3.select(g).selectAll("circle").transition().attr("stroke-width", 1).attr("r", "5");
419420
d3.select(g).selectAll("circle").attr("stroke-width", 1).attr("r", "5").style("fill", function(d,i){
420421
if(d.name == clicked_stop_name){
422+
map_highlightStops([clicked_stop_name]);
421423
svg.append("text")
422424
.attr("id", "tooltip5")
423425
.attr("x", d3.select(this).attr("cx"))

0 commit comments

Comments
 (0)