Repository navigation
feat(ui): a "Flat-area detail" field in a Shaded Relief's style pane (#3143, part 3) - #3357
Conversation
…pengeos#3143, part 3) The style pane's Shaded Relief settings gain Flat-area detail (0 to 1), after Terrain type; it runs raster.symbology with "flats", the setting parts 1 and 2 added. An amount turns it on and shows Flat-area size (1 to 32 cells, whole); 0 turns it off. The user guide describes it after Terrain type. Two doc comments of Flats say the shift is per unit of the DEM's height and that the neighbourhood is cut off at the grid's edges. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI read the diff, the base-branch Bugs: none found. The two doc-comment changes match the code. The edge clipping in Security: none found. The change only adds UI rows that call an existing command key. Performance: none found. The pane adds one row and rebuilds a small Quality:
AGENTS.md: no breaks found.
Not verified: the new kittest drives the sliders through AccessKit Change sizeCompared with
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Closes #3143 (part 3 of 3; parts 1 and 2 were #3315 and #3342).
The style pane's Shaded Relief settings gain Flat-area detail (0 to 1), after Terrain type. It runs
raster.symbologywith"flats", the setting parts 1 and 2 added. An amount above 0 turns the setting on, with the default size, and shows Flat-area size (1 to 32 cells) below it. The size is set in whole cells. Setting the amount back to 0 sends"flats": false, which turns the setting off and hides the size field.The user guide describes it after Terrain type: what it brings out, the formula in words, the size, that only ground flatter than 4° changes, that it's best on a terrain model rather than a surface model, and the
"flats"key.Two doc comments of
Flats(crates/map/src/raster.rs) take the reviews' wording from #3315:Tests
the_relief_pane_sets_its_flat_area_detail(ui-egui, kittest): a Shaded Relief layer's pane has no size field while the setting is off. Setting Flat-area detail to 0.7 (by accessibility, as assistive technology sets a number) turns it on at size 6 and shows the size. A size of 9.6 is stored as 10. 0 turns it off and hides the size again.cargo fmt,clippy -D warnings(map, ui-egui) andtest-hygienepass, as do the map and ui-egui tests.Surfaces
The field is in the desktop and browser style pane, which both draw through
ui-egui. The command line, Python, the Assistant, MCP, scripts and plugins already had the"flats"key from part 2. i18n: the two labels and their hover texts fall back to English until the translation files are updated.Size: 100 changed lines (+91 −9), about 50 of them tests.
🤖 Generated with Claude Code
Summary by CodeRabbit