Source oneway arrow styles from css

This commit is contained in:
Ansis Brammanis
2013-02-05 13:05:12 -05:00
parent 675c39187c
commit 7086012b98
+6 -4
View File
@@ -56,11 +56,13 @@ iD.svg.Lines = function(projection) {
}
if (!alength) {
var arrow = surface.append('text')
.text(arrowtext)
.style('font-size', 7);
var container = surface.append('g')
.attr('class', 'oneway'),
arrow = container.append('text')
.attr('class', 'textpath')
.text(arrowtext);
alength = arrow.node().getComputedTextLength();
arrow.remove();
container.remove();
}
var lines = [],