Skip to content

fix(web): DRGARE dredged-depth labels convert with the depth-unit set…#11

Merged
beetlebugorg merged 1 commit into
mainfrom
worktree-drgare-units
Jun 25, 2026
Merged

fix(web): DRGARE dredged-depth labels convert with the depth-unit set…#11
beetlebugorg merged 1 commit into
mainfrom
worktree-drgare-units

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

…ting

DredgedArea.lua bakes the dredged depth (DRVAL1) as a fixed-metres "%gm" text label, so it never reconverted when the mariner switched to feet — the same bug class as the recent sounding/contour fixes.

Drop the static DRGARE depth DrawText at bake (the area already carries drval1) and label the dredged area client-side from drval1 in the chosen depth unit, via a new drgare-labels layer + s52-style.drgareLabelField — mirroring the contour-labels/valdco pattern. Feet round to whole, metres keep one decimal.

Verified end-to-end (US5MD1MC, Annapolis): the fixed bake drops the static "1.8m/2.2m/3.2m/4.1m" labels (name labels preserved); the same areas render 4.9m/4.5m/1.8m in metric and 16ft/15ft/6ft in imperial.

…ting

DredgedArea.lua bakes the dredged depth (DRVAL1) as a fixed-metres "%gm" text
label, so it never reconverted when the mariner switched to feet — the same bug
class as the recent sounding/contour fixes.

Drop the static DRGARE depth DrawText at bake (the area already carries drval1)
and label the dredged area client-side from drval1 in the chosen depth unit, via
a new `drgare-labels` layer + s52-style.drgareLabelField — mirroring the
contour-labels/valdco pattern. Feet round to whole, metres keep one decimal.

Verified end-to-end (US5MD1MC, Annapolis): the fixed bake drops the static
"1.8m/2.2m/3.2m/4.1m" labels (name labels preserved); the same areas render
4.9m/4.5m/1.8m in metric and 16ft/15ft/6ft in imperial.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@beetlebugorg beetlebugorg merged commit 07dff8d into main Jun 25, 2026
4 checks passed
@beetlebugorg beetlebugorg deleted the worktree-drgare-units branch June 25, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant