Repository navigation
fix(layout): a publication's map isn't moved toward a pole and drawn smaller for the legend's room (#3514) - #3566
Conversation
…smaller for the legend's room (opengeos#3514)
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewNo bugs, security issues, or AGENTS.md breaks found. I could not build or run the tests (no shell here), so the fix and the new test are checked by reading only. Bugs: none found. I checked the new
Security: none. Performance: none. The added work is one division per candidate move. Quality:
AGENTS.md: no breaks. The change touches no command surface, schema, or saved format. The test's Twins checked: the change is confined to Earlier concerns: none. Change sizeCompared with the base branch: the whole PR, merge base 342ebb8 to head 5a974bb.
|
📖 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 |
Code reviewScope: the move search in Bugs
Security
Performance
Quality
AGENTS.md
Twins checked: the change touches only the publication move search. I checked the other Prior reviews: none on this PR, so no earlier concerns were left alone. Change sizeCompared with the base branch: the whole PR against main (merge base 342ebb8 to PR head 5a974bb).
|
Closes #3514
What changed
layout.publicationtries moving the map aside for the legend's room. A move changes the ground scale theframe is drawn at where the projection stretches (Web Mercator with the latitude), and the only check was
that the extent stayed inside the frame's margins, which a shrunken extent passes easily. On a world extent
with a one-column legend the map was moved toward a pole and drawn at about a tenth of its size, with nothing said.
A move that would draw the extent more than 20 % larger or smaller (
MOVE_SIZE_CHANGE, 1 - 1/1.25: the step thesearch already zooms out by, said) is no longer made. Moves a high-latitude extent keeps today (Europe, a Nordic
extent: #1379's tests) are unchanged; at 10 % they are refused.
Reach
Shared engine code behind
layout.publication, so desktop, browser, CLI, Python, the Assistant/MCP and pluginsget it; no command, parameter, answer field or project format changes, so there is no ribbon, undo or schema entry.
Testing
a_move_for_the_legends_room_does_not_shrink_the_extent_toward_a_pole(a4-portrait, a5-portrait,thesis-full): red on main (the frame's centre drew the extent at 0.10 of its size), green here.
cargo test -p rustgis-engine: the Europe and north/south move tests still pass. fmt, clippy, layers, schema green;8 tests fail on main too (7 geolibre, 1 smoke).
project.sample, thenlayout.publication {"profile": "a4-portrait", "extent": [-111.5, -16.6, 146.5, 62.6], "legend": {"columns": 1}}(headlessui_shot).Before (main):
After:
Strings: none added.
Summary by CodeRabbit
Bug Fixes
Documentation