|
@@ -145,7 +145,7 @@ export default class Draw {
|
|
|
? vector.end
|
|
|
: dataService.getRoadPoint(vector.endId);
|
|
|
|
|
|
- if (vector?.midDivide?.display) {
|
|
|
+ if (vector?.midDivide?.display && vector?.midDivideWidth) {
|
|
|
const ctx = this.context;
|
|
|
const startScreen = coordinate.getScreenXY(startReal);
|
|
|
const endScreen = coordinate.getScreenXY(endReal);
|
|
@@ -158,9 +158,10 @@ export default class Draw {
|
|
|
|
|
|
ctx.save();
|
|
|
const vectorStyle = help.setVectorStyle(ctx, vector);
|
|
|
+ ctx.lineWidth = vector.midDivideWidth
|
|
|
draw()
|
|
|
ctx.strokeStyle = Style.bgColor
|
|
|
- ctx.lineWidth = vectorStyle.lineWidth - vectorStyle.realLineWidth
|
|
|
+ ctx.lineWidth = vector.midDivideWidth - vectorStyle.realLineWidth
|
|
|
draw()
|
|
|
ctx.restore();
|
|
|
}
|
|
@@ -298,8 +299,8 @@ export default class Draw {
|
|
|
ctx.save();
|
|
|
const vectorStyle = help.setVectorStyle(ctx, vector);
|
|
|
help.drawCoves(ctx, coves);
|
|
|
-
|
|
|
- ctx.lineWidth = vectorStyle.lineWidth - vectorStyle.realLineWidth
|
|
|
+ ctx.lineWidth = vector?.midDivideWidth || vectorStyle.lineWidth
|
|
|
+ ctx.lineWidth = ctx.lineWidth - vectorStyle.realLineWidth
|
|
|
ctx.strokeStyle = Style.bgColor
|
|
|
help.drawCoves(ctx, coves);
|
|
|
ctx.restore();
|