|
@@ -84,8 +84,9 @@ export default class RoadEdge extends Geometry {
|
|
this.roadSide = {};
|
|
this.roadSide = {};
|
|
this.roadSide["width"] = Constant.roadSideWidth;
|
|
this.roadSide["width"] = Constant.roadSideWidth;
|
|
}
|
|
}
|
|
- // let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, (this.roadSide.width * 2) / 5);
|
|
|
|
- let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, (this.roadSide.width * 100 * window.devicePixelRatio) / 5);
|
|
|
|
|
|
+
|
|
|
|
+ // let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, (this.roadSide.width * 100 * window.devicePixelRatio) / 5);
|
|
|
|
+ let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, (this.roadSide.width * 2 * coordinate.ratio) / coordinate.res);
|
|
for (let key in road) {
|
|
for (let key in road) {
|
|
if (this.vectorId == road[key]) {
|
|
if (this.vectorId == road[key]) {
|
|
if (key == "rightEdgeId") {
|
|
if (key == "rightEdgeId") {
|