|
|
@@ -502,7 +502,7 @@ function drawVerticalScale(ifDirty = false) { |
|
|
|
|
|
|
|
|
function drawAltitudeLine(ctx, height, label) { |
|
|
function drawAltitudeLine(ctx, height, label) { |
|
|
const pixelScale = (ctx.canvas.clientHeight - 100) / config.height.toNumber(); |
|
|
const pixelScale = (ctx.canvas.clientHeight - 100) / config.height.toNumber(); |
|
|
const y = ctx.canvas.clientHeight - 50 - height.toNumber("meters") * pixelScale; |
|
|
|
|
|
|
|
|
const y = ctx.canvas.clientHeight - 50 - (height.toNumber("meters") - config.y) * pixelScale; |
|
|
if (y < ctx.canvas.clientHeight - 100) { |
|
|
if (y < ctx.canvas.clientHeight - 100) { |
|
|
drawTick(ctx, 50, y, label, true); |
|
|
drawTick(ctx, 50, y, label, true); |
|
|
} |
|
|
} |
|
|
|