dashed strip between buslane and drive lane#1532
Conversation
|
@atmobi998 Why is this needed? What is wrong with the default of solid stripe for travel lane adjacent to bus only lane? If this is still needed, this is the wrong file for it, as Claude is saying. Instead it should be part of your streetplan mapping file. I would close this without merging unless you can address why this needs to be in managed-street which is global and affects all users? |
|
changes isolated to streetplan streets only: with the current logic, this should be applied to managed-street.js file ... |
|
Thanks for splitting these out @atmobi998. It's up to you if the bus-lane adjacent to drive-lane should have dashed striping in StreetPlan imports by default, although in my experience those are usually solid stripes and I'll keep that setting as the 3DStreet default. The issue is where to make it. The good news is there's already a clean way to do this. In // During StreetPlan segment processing, after determining segment types:
if (
(segment.type === 'bus-lane' && previousSegment?.type === 'drive-lane') ||
(segment.type === 'drive-lane' && previousSegment?.type === 'bus-lane')
) {
segment.generated = segment.generated || {};
segment.generated.striping = [{ striping: 'dashed-stripe', length: streetLength, segmentWidth: segment.width }];
}This way the StreetPlan import controls its own striping without touching the shared logic, and it'll work correctly when scenes are saved and reloaded too. |
dashed strip between buslane and drive lane