Data layers — any source with places in it, on the map and kept current v1 · new

Asked 2026-11-30: "a generic, dynamic data layer in Cartopolis; the first that wants to show its data is TripleXL." TripleXL (triplexl.nl) is a linked-data store with SPARQL, GraphQL and a change feed; its public datasets include the open data of the three water boards round Groningen — Noorderzijlvest, Hunze & Aa's and Wetterskip Fryslân — with saved queries already marked as maps. Every point on this sheet is a real record from those queries (fetched 2026-11-30), placed on the PDOK aerial photo. Nothing here exists in the app yet.

A layer is data, not code

A source, a query and a style, made on cartopolis.org's Admin page. A new kind of source needs an adapter; a new layer needs nothing built.

The server fetches, the app reads

Atlas asks the source, turns its coordinates (here RD, EPSG:28992) into ours, keeps the result and serves it like the map. Phones never hold a source's key or meet its rate limit.

Current at the source's pace

TripleXL announces every commit (a stream, or signed webhooks). Atlas reruns the query and sends only what changed. A source with no feed is polled.

Every point says where it is from

Publisher, licence, date and a link to the record, on its card and in the attributions — CC BY 4.0 asks for exactly that.

1In the app — a phone, portrait

Data layers are things at places, several at once — not a lens, which colours areas by one figure at a time. So they live under Layers, as a seventh category Data, grouped by who publishes them. A marker stands on the ground like a person pin; a tap opens its card.

14:054G ▮▮▮
3
Westerhavensluis
Ciboga – De Watermolen
Noorderplantsoen · 3 stuwen
3 data layers on

1aThree layers on

  • Stuwen ●, gemalen ● and sluizen ● of Noorderzijlvest, round the Noorderplantsoen and the Westerhaven: 17 records in view.
  • The Layers disc counts the data layers on; no strip or legend rests over the map.
  • Markers stand on the terrain and gather into one with a count when they crowd (higher up, or the 4,085 reports of Hunze & Aa's).
14:054G ▮▮▮
3
Stuw Hoge Noorderplantsoenstuw
Soortoverlaat CodeKST6211 BeheerderWaterschap Noorderzijlvest Hier ookMiddelste en Lage Noorderplantsoenstuw ›
Waterschap Noorderzijlvest open data, via TripleXL · CC BY 4.0
layer “Stuwen” · source changed 28 Nov 2026
Walk here Share Record

1bTap a marker — its card

  • The card is made from the layer's style: a title field, the fields chosen to show, the kind in the layer's colour. No code per source.
  • The source line is fixed: publisher, route (via TripleXL), licence, when the source last changed.
  • Record opens the record's own address (its IRI, here on triplexl.nl). Walk here and Share are the place card's, as now.
14:054G ▮▮▮

Map layers

Map
City
Places
Moving
Under
Orbit
3Data new
Waterschap Noorderzijlvest
via TripleXL · CC BY 4.0 · changed 28 Nov
Stuwen12 here · 1,578 in all
Gemalen4 here · 276
Sluizen1 here · 54
Duikers over 100 mlines · 0 here
Waterschap Hunze & Aa's live
via TripleXL · CC BY 4.0 · changed 28 Nov
Peil bij stuwenmeasured against target · 537
Meldingen4,085 · gathered
Waterkeringenlines · 2,178
Zuiveringen21
Wetterskip Fryslân
via TripleXL · CC BY 4.0 · nothing in view
Add a data layer · admins, on cartopolis.org

1cLayers ▸ Data

  • A seventh tab beside Map … Orbit; the tiles are the switches the other tabs have.
  • Grouped by publisher, the route and licence under each name. A tile says what it holds here and in all, so an empty switch is visible before you flip it.
  • “Live” on a group: the source tells atlas when it changes (§3).
14:054G ▮▮▮
st. Wolfsbarge — new measurement
−0.53 m, 12 cm above its target −0.65 m · Peil bij stuwen
+12 cm
Oude Roodehaan −20 cm
Borgmeren +17
livePeil bij stuwenHunze & Aa's
above target12 here
at target (within 5 cm)13
below target3

1dA layer that changes

  • East of the city, the water level at each weir against its target: 28 weirs in view, coloured by the source's own column (toestand), the difference on the label.
  • When a commit changes a record in view, its marker pulses and one quiet line says what changed; nothing pops up for records out of view.
  • A layer with a colour column shows its key while it is the one you opened; ✕ or a drag hides it, as lenses do.

2Adding a layer — cartopolis.org ▸ Admin ▸ Data layers new

Paste an address; atlas recognises the source, lists what it can draw, and shows it before anything is published. Here the Noorderzijlvest dataset: TripleXL already marks seven of its saved queries as maps, so choosing one is enough — no SPARQL to write.

cartopolis.org/admin/data-layers/new
CartopolisCommunityWorldAdminviberfox
Admin › Data layers › New
A new data layer
1Source
https://www.triplexl.nl/datasets/archixl/noorderzijlvest
TripleXL · SPARQL 1.1, GeoSPARQL, change feed
Waterschap Noorderzijlvest open data — 4,144,625 statements, CC BY 4.0, public
saved map queriesRD → WGS 84commit streamno key needed
Maps in this dataset
De stuwen op de kaartstuwen-kaart · points
De gemalen, een kleur per functiepoints
De sluizen, een kleur per soortpoints
Duikers van meer dan 100 mlines
De tien langste primaire waterenlines
Stuwen met een kleur per soortasks for a value
Stuwen zoekenasks for a value
Own query…SPARQL
2What it draws
1,578 records1,578 with a placepointsgeometry from wkt, EPSG:28992answered in 0.15 s
overlaat 80schotbalkstuw 30stuw met klep 23stuw met schuif 18tuimel- of kantelstuw 11other 14· in this view
3How it shows
Stuwen
Waterschap Noorderzijlvest▾
naam▾ column
soort▾ 7 values
code
soort
stuw · the record's address, used for Record
Kept current
When the source changes · TripleXL's change feed
Every  6  hours
Once
Who sees it
Everyone on this server
A community: Groningen ▾
Credited as “Waterschap Noorderzijlvest open data, via TripleXL”, CC BY 4.0 — read from the dataset
Publish layerSave as draft

3How it fits together

The same road the map already takes: atlas makes the data, the client streams it by place. What is new is one table of layer definitions, an adapter per kind of source, and a nudge when a layer moves on.

The source

→query, then
on each commit

atlas new part

→cells by place,
“layer X is at N”

The app

A layer, as atlas keeps it

# one row per layer; made on the Admin page
id        = "nzv-stuwen"
name      = "Stuwen"
group     = "Waterschap Noorderzijlvest"
[source]
kind      = "triplexl"             # triplexl | sparql | geojson | csv | ogc
dataset   = "https://www.triplexl.nl/datasets/archixl/noorderzijlvest"
query     = "stuwen-kaart"         # or sparql = "…"
refresh   = "changes"              # changes | every 6h | once
[shape]
geometry  = "wkt"                  # CRS read off the literal
title     = "naam"
colour_by = "soort"
fields    = ["code", "soort"]
link      = "stuw"
[credit]
text      = "Waterschap Noorderzijlvest open data, via TripleXL"
licence   = "CC BY 4.0"
seen_by   = "everyone"             # or a community

Left open in this sheet