Repository navigation
Adornments: short dataset name and an altitude bar - #167
Merged
Merged
Conversation
The adornment text is now the dataset's short name (Mapterhorn without its zoom suffix) instead of the full dataset and imagery attributions, which stay in the model credits. It is drawn at the size of the other labels. New CreateElevationBar: a vertical bar at the model's north-east corner, from its lowest to its highest point, with ticks and upright labels in meters facing south. Labels move apart when the bar is shorter than they are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ShortName():DEMDataSet.Name, Mapterhorn without its_zNNsuffix). The long dataset and imagery attributions are dropped from the 3D text; they remain in the model credits. The text is capped at the size of the other labels (N, scale bar) so a short name isn't blown up.CreateElevationBar(bboxModelSpace, zBottom, zTop, minMeters, maxMeters): a white vertical bar just outside the north-east corner, from the lowest to the highest terrain point, with ticks and upright labels (797 m,3220 m) facing south. Labels move apart when the bar is shorter than they are; a flat area gets a single label. Model space (Z up), final coordinates.CreateModelAdornmentskeeps its signature (the imagery provider is now unused) so existing callers still build.Used by the Elevation API (DEM.Net.WebAPI PR to follow).
Test plan
ShortNametests🤖 Generated with Claude Code