Text in lanes assumes road direction and cannot easily be fixed
Which IMT are you using? Stable, BETA, BETA with Early Access Stable
What computer OS are you using? (ex: Linux (version), MACOS, Windows (version)) Windows 10
Describe the bug When you draw a lane decoration and make it Text style, the 0° angle and start/end alignments always, unfailingly, assume that every lane is to the right of the centerline in the direction of travel. This happens even on left-hand-drive maps, even on roads with unbalanced lanes, or roads with backwards lanes. It doesn't matter in which direction you actually draw the lane, and the endpoints of the lane cannot be reversed.
To Reproduce Steps to reproduce the behavior:
- Create any road that has at least one lane left of its center (in the direction of travel). This can be any (vanilla) road in a left-hand-drive map, or any one-way road at all.
- Open the Intersection Marking Tool
- Draw a lane (line) along the lanes left of the centerline
- Set the style to Text
- Enter some text
Expected behavior The text should be readable in the lane's direction of travel.
Screenshots This screenshot demonstrates the problem in a city set to left-hand drive. From left to right, the roads are:
- Two-Lane Road (vanilla)
- Two-Lane One-Way Road with Trees (vanilla)
- 1+1 Reverse Lane Road (Ryancat)
- Four-Lane Asym Road (1+3) (cylis)
- Basic Road with Turning Lane (cylis)
In all cases, the settings for the text are as follows:
(Note that the left-hand drive and the reverse lane road actually cancel each other out and the texts work as expected on that one. For the road with the bidirectional lane, maybe it'd be nice if the text could show up both ways?)
Additional information It occurs to me that one could work around this by selecting the opposite alignment and an angle of 180°, but the behavior should be consistent in the first place and the fix may actually have to be mindful of this workaround. A potential non-breaking fix is a simple option to reverse the lane decoration regardless of its style, opt-in for any existing lanes, and future lanes after the fix should start out in the direction actually drawn.
It looks like expected result. Lanes and lines has internal direction independent from direction you create them.
8 of the 13 texts in the screenshot were created facing the opposite of the direction of travel for that lane, plus one that would be ambiguous. That is certainly not the expected result.
Imt's lane is not the same as road lane. You can connect, for example, 1st and 4th lanes or use them on roads where direction are not applied like pedestrian paths. So that IMT has internal direction of IMT lanes which could not match direction of driving lanes. In general first half of lanes have one direction and second half have another direction what is shown on your screenshot. This behavior can not be changed if I don't want to break all existing marking. There are settings which allows you to place text in position which you want