|
@@ -1567,8 +1567,9 @@ export default class RoadService {
|
|
|
let edgeLine = mathUtil.createLine1(leftEdgePoint, rightEdgePoint);
|
|
|
let roadWidthTipsPos = [];
|
|
|
if (road.way == Constant.oneWay) {
|
|
|
- //单车道
|
|
|
+ //单向
|
|
|
if (road.singleLanes.length) {
|
|
|
+ //单向多车道
|
|
|
let crossList = [];
|
|
|
for (let i = 0; i < road.singleLanes.length; i++) {
|
|
|
let crossLine = mathUtil.createLine1(
|
|
@@ -1597,6 +1598,7 @@ export default class RoadService {
|
|
|
});
|
|
|
road.setRoadWidthTipsPos(roadWidthTipsPos);
|
|
|
} else {
|
|
|
+ //单向单车道
|
|
|
roadWidthTipsPos.push({ start: leftEdgePoint, end: rightEdgePoint });
|
|
|
road.setRoadWidthTipsPos(roadWidthTipsPos);
|
|
|
}
|