提交 baf53618 编写于 作者: U unacao 提交者: siyangy

temp. fix for updated map lane boundary (#861)

上级 3e4ce5f6
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -11,9 +11,9 @@ import { loadObject } from "utils/models";
const colorMapping = {
YELLOW: 0XDAA520,
WHITE: 0xcccccc,
WHITE: 0xCCCCCC,
CORAL: 0xFF7F50,
RED: 0xff6666,
RED: 0xFF6666,
GREEN: 0x006400,
PURE_WHITE: 0xFFFFFF,
DEFAULT: 0xC0C0C0
......@@ -87,7 +87,8 @@ function addLane(lane, coordinates, scene) {
drewObjects.push(centerLine);
});
const rightLaneType = lane.rightBoundary.type;
// TODO: this is a temp. fix for repeated boundary types.
const rightLaneType = lane.rightBoundary.boundaryType[0].types[0];
lane.rightBoundary.curve.segment.forEach((segment, index) => {
const points = coordinates.applyOffsetToArray(segment.lineSegment.point);
const boundary = addLaneMesh(rightLaneType, points);
......@@ -95,7 +96,7 @@ function addLane(lane, coordinates, scene) {
drewObjects.push(boundary);
});
const leftLaneType = lane.leftBoundary.type;
const leftLaneType = lane.leftBoundary.boundaryType[0].types[0];
lane.leftBoundary.curve.segment.forEach((segment, index) => {
const points = coordinates.applyOffsetToArray(segment.lineSegment.point);
const boundary = addLaneMesh(leftLaneType, points);
......
......@@ -704,11 +704,11 @@ lane {
length: 156.61603286829296
}
}
length: 156.61603286829296
boundary_type {
s: 0
types: DOTTED_YELLOW
}
length: 156.61603286829296
}
right_boundary {
curve {
......@@ -1051,11 +1051,11 @@ lane {
length: 151.14875772478879
}
}
length: 151.14875772478879
boundary_type {
s: 0
types: CURB
}
length: 151.14875772478879
}
length: 153.87421245705966
speed_limit: 4.5
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册