HydraIssues

hydratam atlas: one mark per province, and three defects the fan out was hiding
closed bug Project: experiencenet Parent: #813 Reporter: 17 Oct 2026 12:06

Description

The XR Valley map fanned each organization onto a golden angle spiral around the provincial capital, so that all 13 in Brussels could be tapped. It drew 13 positions that nobody had given: the survey asked for a province and nothing finer. The owner reported it looked off.

A map must not draw a position it was never given, and a legend cannot take one back. Three captions saying "this is an arrangement" did not make it true.

What changed

One mark per province, drawn in the middle of the province, carrying the count inside the disc. Tapping it opens the province and lists the organizations in it; back from an organization returns to its province rather than to all 65. The spiral is gone along with the shader attribute, the zoom threshold, the fade and the label gate that served it.

The middle is read off the drawn shape by innerPoint: it cuts the region along a horizontal line and takes the middle of the widest piece inside it. The bounding box centre was never an option, because 17 of the 277 European NUTS 2 regions have a box centre outside themselves, in the sea (Liguria, Istanbul, Attica, the Greek islands) or in another country (Nord-Norge in Swedish Ovre Norrland, Copenhagen in Swedish Sydsverige). A region also refuses a point inside a smaller region, because the geometric middle of Brandenburg is in Berlin, of Stredni Cechy is in Prague and of Sud-Muntenia is in Bucharest.

Three defects this uncovered, all of them already live

  1. Regions were drawn and picked in file order. The simplified 1:20 million boundary of Flemish Brabant does not cut a hole for Brussels, it covers it, so a tap in the middle of Brussels answered "Flemish Brabant". Regions are now ordered by area: drawn largest first so an enclave stays visible, picked smallest first so a tap inside one answers with it. The same shape of problem exists for Berlin, Vienna, Bremen, Hamburg and Inner London.
  2. Sheet.inset() reported the rail width on a desktop, where the rail is docked beside the map and #stagewrap{right:var(--rail)} already takes those pixels off the canvas. The frame counted it twice: on a 1440 px window the map drew at 62 per cent of the room it had, pushed left, with an empty strip beside it. On a phone the sheet does overlay the map, so there the inset is real.
  3. A label could be placed nearer another mark than its own, which reads as naming that one. "West Flanders" landed under the East Flanders mark. The nearest mark to a label must now be the mark it names, and a label that fails every position is dropped instead. At 390 px the two provinces either side of Brussels lose their names and get them back on any zoom, which is the right way round.

Guards added

  • data/geo/check-placement.mjs: every region in both geometry files places inside itself and outside its enclaves. It reads the real functions out of web/atlas.html rather than holding a copy, so it cannot drift from the page.
  • web/check-atlas.mjs: drives a real browser at phone width with real touch events and asserts that every name on the map is nearest its own mark, that tapping each mark opens that mark's own province, that the province lists all of its organizations, and that no entry carries a town or a point.
  • An entry may now carry no coordinates either, for the same reason it may carry no town: a point would give it a mark of its own. Both dataset guards check by key rather than by value, because "Hasselt University" is a real organization name.

Comments (1)

api 17 Oct 2026 12:06

LIVE in production: v0.2.9. https://hydratam.experiencenet.com/atlas

Deployed by rebuilding the scale on pi-node-001: hydraskin update hydratam --tag v0.2.9 --apply, v0.2.8 -> v0.2.9 in 12s. The state checksum over /srv/scales/hydratam is byte identical before and after the rebuild (22 files, c69c284aac6db421...).

Verified against production, not against a local build:

10 marks drawn for 10 populated places
8 of them are named at 390px
"Brussels" is nearest the mark holding 13
"West Flanders" is nearest the mark holding 8
...
tapping the mark holding 13 opens Brussels
tapping the mark holding 6 opens Flemish Brabant
tapping the mark holding 6 opens Limburg
tapping the mark holding 2 opens Walloon Brabant
10 marks open 10 different provinces
Brussels lists 13 of its 13 organizations
back from it returns to Brussels, not to the whole list
0 entries carry a town or a point of their own (want 0)

node web/check-atlas.mjs https://hydratam.experiencenet.com exits zero. node data/geo/check-placement.mjs reports all 277 European NUTS 2 regions and all 11 Belgian provinces placing inside themselves.

The live page carries no spiralOffset, no uBloom and no aOffset. The published privacy note now reads "drawn as one mark in the middle of the province ... and no organization has a mark of its own".

Two things left for the owner to decide, neither a blocker:

  1. organizationType publishes three survey write ins verbatim: "The coolest company in Belgium!", "erkende cooperatieve vennootschap" and "teacher with love for informatics en new XR ThreeJS technology". Those are organizations describing themselves rather than personal data, so they were left alone, but they render as categories beside "SME" and "Startup".
  2. Flemish Brabant and Walloon Brabant carry no name at 390 px, because either position would sit nearer the Brussels mark. They are tappable, and they are named at any zoom. A dropped label is a gap a visitor can see; a label beside the wrong mark is not.