Update onway arrow font size

This commit is contained in:
Ansis Brammanis
2013-02-05 12:14:37 -05:00
parent d159b37ab6
commit 0cc2d62985

View File

@@ -56,7 +56,9 @@ iD.svg.Lines = function(projection) {
}
if (!alength) {
var arrow = surface.append('text').text(arrowtext);
var arrow = surface.append('text')
.text(arrowtext)
.style('font-size', 7);
alength = arrow.node().getComputedTextLength();
arrow.remove();
}