Line 150: | Line 150: | ||
var circle = d3.geo.greatCircle(); | var circle = d3.geo.greatCircle(); | ||
− | + | var lineTooltip = d3.select('#show'); | |
var svg = d3.select("#globe") | var svg = d3.select("#globe") | ||
Line 202: | Line 202: | ||
return arcPath(circle.clip(d)); | return arcPath(circle.clip(d)); | ||
}).on("mouseover", function(d) { | }).on("mouseover", function(d) { | ||
− | lineTooltip.html( | + | lineTooltip.html(d.properties.name); |
}); | }); | ||
Line 213: | Line 213: | ||
return devPath(circle.clip(d)); | return devPath(circle.clip(d)); | ||
}).on("mouseover", function(d) { | }).on("mouseover", function(d) { | ||
− | lineTooltip.html( | + | lineTooltip.html(d.properties.name); |
}); | }); | ||
Revision as of 12:03, 1 November 2017