Lenses — reading the map, apart from how it looksnew
The Layers panel has two jobs that fight each other. Most of it says how the world looks:
many switches, on or off, set once and left. Figures are something else: what you are reading
— one at a time, with a source, a mode (Replay, Exercise, Live) and sometimes a clock. Ticking a
switch to open a figure that closes the other one is a radio button dressed as a checkbox; on a
phone the panel covers the whole map, so you cannot see what you picked; and the scenario's title
card lands on top of the panel header. Scenarios, forecasts and simulations will add dozens more.
This sheet moves all of it out of Layers into a lens: its own button, its own sheet that
keeps the map visible, and a shelf to choose from.
Layers = how it looks. Lens = what you read.
Layers keeps the switches (ground, names, clouds, hex grid). Everything with a source and a figure moves to the lens. One lens open at a time.
Pick, never tick
A lens shows one figure. The figure list is radio rows, and each row already shows the value here, so you choose by reading, not by trying.
The map stays in view
On a phone the lens is a bottom sheet with three heights: a strip, half, full. You choose with the map visible above your thumb. Landscape and desktop: a side panel.
One place for how real it is
Mode, source and close live in the sheet's header, not in a floating card. The coloured frame round the screen stays, so a screenshot still says Replay or Exercise.
1On a phone, portrait: the sheet at three heights
Apeldoorn's neighbourhoods, CBS 2024 (the map from ../scenarios/ v5-areas). The lens button is new and sits under Layers in the top-left column — the column for controls of the view (map-chrome.md) — because the dock already holds six discs. With a lens open it takes the mode's colour, so you can always see one is on.
16:204G ▮▮▮
new · lens, on
ReplayAged 65 and over
CBS · Kerncijfers wijken en buurten 2024 · per buurt
under 18 %212427 % and over
Binnenstad buurt · under the crosshair20 %
1aStrip — reading while you move
What replaces the floating title card and the states card: one strip above the dock, the figure's name, its scale, and the value where you are.
The whole map stays free; the strip stays out of the way of the top-left discs.
Swipe up, or tap the name, for the figures.
16:204G ▮▮▮
ReplayKerncijfers 2024
CBS via PDOK · published figures · values for Binnenstad
People
Aged 65 and over20 %
Aged under 159 %
People per km²7,410
Homes
Single-person households66 %
Owner-occupied homes33 %
Average home value€ 312k
1bHalf — choose a figure
Radio rows, not switches: one is on, tapping another moves it. The map above repaints as you tap.
Each row shows its own colour ramp and the value at the crosshair, so the list already answers "what is this place like" before you pick.
Groups (People, Homes …) come from the scenario file; a lens with forty figures stays a list you can scan.
⋯ holds Sources and About; ✕ closes the lens. Values are illustrative.
16:204G ▮▮▮
Lenses
Ask about this place…
Here · ApeldoornEverywhereLiveWhat if
Who lives here?
Kerncijfers 2024
Age, households, homes — buurt to country
ReplayCBS · 6 figures · open
What is coming?
Population to 2050 not built
PBL/CBS regional forecast, a high and a low future
ModelPBL · 2024 → 2050
What if?
A drone night over Europe not built
Tracks and when each province is reached
Exerciseinvented · 6 hours
Fallout, two days after not built
A modelled wind plume, shape only
Exercisemodel · 48 hours
Right now
No official alert for this area
Live lenses appear here only from an official source.
1cFull — the shelf of lenses
Tapping the lens button with nothing open opens this; with a lens open it opens 1b, and "All lenses" sits at the bottom of the figures.
Grouped by the question a person brings (v5-areas: "a question, not a dataset"), never by source or file.
Here filters to lenses that have something to say about the place in view (a lens's boards and rungs, MAX_REACH); search covers figure names too.
Every card wears its mode, so an exercise never looks like news.
16:204G ▮▮▮
Binnenstad
buurt · Apeldoorn · 6,020 residents · CBS 2024
heretown · NL
Aged 65 and over20 %22 · 20.5
Aged under 159 %15 · 15.4
People per km²7,410471 · 523
Single-person households66 %37 · 39.9
Owner-occupied homes33 %60 · 57
Average home value€ 312k€ 380k · 405k
Its townCompare…Talk about it
1dTap a place — its card, in the same sheet
The place card is the figure list turned round: every figure of the lens for this one place, against its town and the country (compare, never rank).
Tapping a row switches the map to that figure — the second way to choose, from a place instead of from a list.
"Its town" climbs a rung; "Compare…" picks a second place; "Talk about it" opens the place's chat (v5-areas: every figure leads to people). new
2Landscape, tablet and desktop: a side panel, and a clock when there is time
The same content as the sheet, as a panel on the left, so it never fights the Layers panel on the right, and the top-left column moves along its edge. A lens with a clock (a forecast, a replayed night) puts the time bar at the top of the panel, measured solid and modelled hatched, as v5-areas drew it. The forecast lens is not built.
ModelPopulation to 2050
20142024 measured20352050
High futureLow future
Aged 65 and over27 %
Inhabitants+4 %
Households+9 %
2aLandscape phone: the lens on the left, the map on the right
The screenshot from today — the panel over half the globe, the title card over its header — becomes a 330 pt column that holds the clock, the futures and the figures. Collapsing it leaves the strip of 1a along the bottom.
A model's lens is framed grey, a published one green, an exercise striped: the frame is the one thing that never moves into the panel.
Two futures are two scenarios on one clock (v5-areas); choosing between them is again a pick, never a tick.
2b What the lens panel holds, top to bottom
Part
Shown
From
Header
mode chip, lens name, ⋯ (sources, about), ✕
today's title card
Clock
only when the lens has time to move through; futures as chips
today's clock bar
Figures
radio rows, grouped, value here on each
Layers ▸ Figures
Scale
the open figure's bands with counts, in the strip and under the list
today's states card
Place
under the crosshair, or the tapped place's card (1d)
today's states card
Tracks
for a moving lens (drones), the selected track's card
today's track card
Three floating cards and a panel section become one surface. It is also where future kinds go without new chrome: a simulation's controls take the clock's row, a counter lens (people affected) takes the place row.
3What Layers loses, and what it keeps
Layers goes back to switches about the look of the world. The hex grid stays there: it is a way of drawing, not a figure. Nothing else in Layers changes.
Layers — today
From above
Night side
City lights
Hex grid
Figures
Aged 65 and over
Aged under 15
People per km²
Single-person households
Owner-occupied
Home value
→
Layers — after
From above
Night side
City lights
Hex grid
Lens open: Aged 65 and over change it under the lens button
One line in Layers says which lens is open, so nobody looks for the old Figures section in vain; it goes once the button is known.
The persisted DataLayers::scenario stays as it is — what moves is where it is changed, not what is saved.
On a phone, Layers keeps its full-width panel: switches are set and left, so covering the map there costs little.
4Decisions in this sheet, and what is open
Decided in the drawing
Lens, not layer. The word the scenario sheets already use ("a lens with a clock", v1-engine). One open at a time; opening another replaces it, and the shelf's first card is the one you had.
Own button in the top-left column, under Layers. The dock is full at six (dock.rs), and a lens is a control of the view, like Layers.
Bottom sheet in portrait, side panel otherwise, with the same three parts. The strip is the resting state; nothing floats over the map except the frame.
Radio rows with the value here for the figures; chips for futures and modes inside a lens.
Grouped by question on the shelf; lens files gain a question and figure group line in their TOML.
Open
Two figures at once? Not here: one lens, one figure. A side-by-side (split screen, ) for comparing two futures or two years is the likely next step, drawn when there are two to compare.
The button's icon and name ("Lens", "Figures", "Read") — the word reaches people only through the tooltip and the shelf title.
Where a community's own lens goes (a neighbourhood survey, a plan's map): the shelf can hold them under "From your communities"; not drawn.
Live stays empty until there is an official feed (NL-Alert has none we know of, scenarios README).