All thirty days

Day 30: Sketchbook

The streets around 24 Canadian libraries, inked on paper at one scale, each with a compass of the directions it runs: Regina's grid scores 0.97 for order, Corner Brook's tangle 0.10.

sketchbook.json
Loading 24 sheets
Sheet, by street order
Pencil is the street. Ink is the pen. The compass shows how far the streets run each way.Click a street. The pink X is the library.

Each sheet is the 2 km square around a city's central public library, the same 24 libraries as Day 3, at one scale. The faint grey pencil is the real street. The ink over it is a pen that cannot keep still: every line is moved by up to 3 m, by an amount that depends only on where it is, so two streets that meet still meet. The pink X is the library. Click a street to read its direction.

Beside each name is a compass: a stroke for every direction a street can run, as long as the street that runs that way. Next to it is the sheet's order, from 0 for streets in every direction to 1 for a perfect grid. Only three sheets score above 0.9: Regina (0.97), Brandon (0.97) and Montréal (0.93). Regina's and Brandon's grids point north. Montréal's is turned 30° off north, along the St. Lawrence, and is just as orderly.

At the other end are Corner Brook (0.10), Iqaluit (0.12) and St. John's (0.18), where streets follow a hillside, a bay or a harbour. In Regina 55% of the street runs within 15° of its busiest axis. In Corner Brook 20% does, about what streets pointing every which way would give.

How it's made

How the map inks the streets over the sketch style.

import { createMap } from '@unmap/sdk'

// sketch is a style like any other: cream paper, pencil streets, ink-blue water
const map = createMap({ key: 'um_pk_live_...', container: '#map', style: 'sketch', mode: 'light' })

// The pen: a smooth noise of the position, so two streets that meet still meet
const wobble = (lng, lat) => {
  const kx = 111320 * Math.cos(lat * Math.PI / 180), x = lng * kx, y = lat * 111320
  return [lng + (3 * noise(x / 70, y / 70, 1) + 0.8 * noise(x / 12, y / 12, 3)) / kx,
          lat + (3 * noise(x / 70, y / 70, 2) + 0.8 * noise(x / 12, y / 12, 4)) / 111320]
}
const ink = line => densify(line, 9).map(([x, y]) => wobble(x, y))

const sheet = await fetch('/30daymapchallenge/2026/sketchbook.json').then(r => r.json())
const calgary = sheet.cities.find(c => c.id === 'calgary')
const labels = map.getStyle().layers.find(l => l.type === 'symbol')?.id
map.addSource('streets', { type: 'geojson', data: { type: 'FeatureCollection',
  features: calgary.roads.map(([cls, ...row]) => ({ type: 'Feature', properties: { cls },
    geometry: { type: 'LineString', coordinates: ink(decode(row)) } })) } })
map.addLayer({ id: 'ink', type: 'line', source: 'streets',
  layout: { 'line-cap': 'round', 'line-join': 'round' },
  paint: { 'line-color': '#2B2A33', 'line-width': ['interpolate', ['linear'], ['zoom'], 14, 1.5, 17, 3.4] } }, labels)

The basemap is unmap's new sketch style, made for the day: cream paper, roads in pencil, labels in ink and water in blue, with no fills. The streets are unmap's own basemap tiles at zoom 14, from OpenStreetMap: for each library the square 1 km each way, clipped to the square, simplified to 1.5 m, and kept if a car could use it (paths, footways and driveways are left out). The 24 sheets hold 1,115 km of street. The order is Geoff Boeing's: each street segment's bearing goes into a ten-degree histogram, both ways round, weighted by its length, and the order is 1 minus the squared distance of the histogram's entropy from a perfect grid's, scaled against streets in every direction (Boeing, 2019, Applied Network Science). The compass is that histogram. The pen is a function, not a hand: the lines are cut every 9 m and each point moved by smooth noise of its position, 3 m over about 70 m and 0.8 m over 12 m, so the sheet is the same on every visit. It is a look, not a measurement; the pencil beneath is what to trust. Each sheet is a 2 km square around one library, a downtown and not a city, and order depends on where the square falls: a river, a rail yard or a hill inside it counts. OpenStreetMap is mapped better in some places than others. The script is scripts/build-challenge-sketchbook.mjs in the unmap repository.

Data

Share this map

Post it, or make your own and tag it #30DayMapChallenge.