|
|
@@ -1330,12 +1330,12 @@ export default class RoadService {
|
|
|
let rightEdge = dataService.getRoadEdge(road.rightEdgeId);
|
|
|
let edgePoints;
|
|
|
if (road.way == Constant.oneWay) {
|
|
|
- edgePoints = mathUtil.RectangleVertex(startPoint, endPoint, newWidth);
|
|
|
+ edgePoints = mathUtil.RectangleVertex(startPoint, endPoint, newWidth * 2);
|
|
|
mathUtil.clonePoint(leftEdge.start, edgePoints.leftEdgeStart);
|
|
|
mathUtil.clonePoint(leftEdge.end, edgePoints.leftEdgeEnd);
|
|
|
mathUtil.clonePoint(rightEdge.start, edgePoints.rightEdgeStart);
|
|
|
mathUtil.clonePoint(rightEdge.end, edgePoints.rightEdgeEnd);
|
|
|
- road.setWidth(newWidth);
|
|
|
+ road.setWidth(newWidth * 2);
|
|
|
} else if (road.way == Constant.twoWay) {
|
|
|
if (dir == "left") {
|
|
|
edgePoints = mathUtil.RectangleVertex(
|