gap: the crop parcels have no row in Map layers and cannot be switched off #223
Labels
No labels
agent
agent:ci
agent:done
agent:failed
agent:needs-input
agent:refined
agent:refining
agent:running
agent:shipped
agent:skip
autonomous
autopilot
driven
local
plan
proposal
qa
qa-gap
research
retro
ship
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jeroen/cartopolis#223
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while QA-ing what #203 shipped (#217).
What I did
Served the crop tree from a stand-in extractor (see #217), flew to the Flevoland
cell with the fields drawn, and opened Map layers (
--ui layers) to switchthe new layer off — the first thing anybody does with a map layer they did not
ask for.
What happened
There is no row for it. The panel lists Public transport stops, Shops,
Buildings ▸ OSM 3D buildings, Map ▸ Trees / Grass / Street furniture / Road
textures / Water shading / Street labels / Flood defences / Street detail /
Aerial photography, then Life. The crop parcels appear in none of them, and the
only sign the layer exists at all is an attribution line far below the fold.
The fetch is ungated too:
map_geometry's surfaces job callscrops::load_crop_cellunconditionally, unlike the paving and marks beside itwhich at least ride
wants.furniture/ the surveyed gates. So there is nosetting, no checkbox and no environment switch — over covered ground the tones
are simply on.
Flood defences is the precedent that makes this look like an oversight rather
than a policy: it is the same shape of thing (an additive PDOK register with its
own coverage manifest and its own attribution line) and it has a checkbox.
What a user would expect
A row under Map — "Crop parcels", "Netherlands only" in the sub-label the way
Aerial photography says "PDOK imagery — Netherlands only" — that turns the tones
off and leaves the generic green. Half a country's ground changing colour is
exactly the kind of thing the panel exists to explain and to undo.
Where the seam is
crates/cartopolis/src/systems/gui/data_layers.rs—DataLayershas nocrops_enabled; the crop code appears only at the attribution line (~2516).crates/cartopolis/src/systems/map/map_geometry.rs:463—load_crop_celliscalled with no
wants.*gate, and ~537 extends the cell's meshes with theparcels unconditionally.
wants.grass, so the toggle would have to bump thesame rebuild revision the coverage does
(
map_geometry~928,crops::coverage_revision) or the tones would stay onscreen until the cells were retired for some other reason — the failure mode
the layer-toggle memory in this tree already records.