pass the full segment length to labeling
This commit is contained in:
parent
f77adb30ab
commit
114eb91084
@ -223,16 +223,16 @@ public final class WayDecorator {
|
|||||||
y2 = prevY;
|
y2 = prevY;
|
||||||
}
|
}
|
||||||
|
|
||||||
// estimate position of text on path
|
// // estimate position of text on path
|
||||||
width = (x2 - x1) / 2f;
|
// width = (x2 - x1) / 2f;
|
||||||
//width += 4 * (width / wayNameWidth);
|
// //width += 4 * (width / wayNameWidth);
|
||||||
x2 = x2 - (width - s * width);
|
// x2 = x2 - (width - s * width);
|
||||||
x1 = x1 + (width - s * width);
|
// x1 = x1 + (width - s * width);
|
||||||
|
//
|
||||||
height = (y2 - y1) / 2f;
|
// height = (y2 - y1) / 2f;
|
||||||
//height += 4 * (height / wayNameWidth);
|
// //height += 4 * (height / wayNameWidth);
|
||||||
y2 = y2 - (height - s * height);
|
// y2 = y2 - (height - s * height);
|
||||||
y1 = y1 + (height - s * height);
|
// y1 = y1 + (height - s * height);
|
||||||
|
|
||||||
TextItem n = TextItem.get();
|
TextItem n = TextItem.get();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user