Chart RS-26 · FN-08 2026-11-24 · 3 min read
Chart lighting

Field note FN-08

From a planet file to a map on the wrist

How Wrist Map turns one 129 GB planet map into small watch tiles, gets them onto the watch in pieces, and draws them without tripping the watchdog.

Project · Silva Dev Labs →

One zoom level for every zoom

Wrist Map’s planet map holds many zoom levels. The Worker reads only one, and every zoom on the watch is drawn from those same tiles, scaled on the watch.

That sounds wasteful, and zoomed far out it is. But it means a downloaded area has exactly one tile per place. A hiker who downloads a valley gets every zoom of it at once, and the storage cost is predictable. Which things appear at which zoom is decided on the watch, by the width of the screen in metres, so every watch shows the same map whatever its resolution.

From vector tile to a watch tile

The Worker sorts OpenStreetMap’s features into a few dozen classes of area, line and point. The class is also the draw order, so woods go under water, water under buildings, and paths under roads.

What’s kept is chosen for someone on foot: peaks, saddles, huts, shelters, water points, viewpoints, footways and via ferratas. Sidewalks, crossings, ferries and park outlines are dropped.

The output is a small binary format, grouped by class so the watch can skip a whole group without reading it, for example buildings when zoomed out. A tile has to fit in one storage value on the watch, which holds 32 KB. Most tiles are nowhere near that. The ones that are get simplified harder, in rounds, until they fit. If that still isn’t enough, which only happens in dense city centres, whole classes are dropped, least useful first. A tile never fails outright. It just gets plainer.

Measured on Zermatt, about 330 km², the median tile is 1.6 KB and the whole area takes 355 KB on the watch.

The watch can only fill a polygon of at most 64 points, with no holes. Map polygons have thousands of points and plenty of holes: a lake with islands, a forest with clearings. So every polygon is simplified, clipped to its tile, joined to its holes with a zero-width cut so it becomes one ring, and split into pieces small enough to draw.

Getting it onto the watch

Choosing an area on a watch is miserable, so the phone does it. The watch shows a QR code, and the phone opens a page where you frame an area up to 60 km a side, or upload a GPX route.

The pack travels as one stream, cut into chunks that fit in a response. A chunk usually ends in the middle of a tile, and that’s where it gets interesting. If I upload a new planet file between two chunks, the second half of a tile would come from the new data and the first half from the old. So every chunk carries a hash of the tile it starts in and the one it ends inside. If they don’t match, the watch starts that tile again. Three restarts in a row and the download stops with “Map data changed”.

A long route crosses so many tiles that a simple list of them could outgrow a storage value, so the watch stores them as runs and finds a tile by searching those.

Drawing under a watchdog

A Connect IQ app that runs too long in one callback is killed. A map view can easily need more work than that, so drawing is sliced across timer callbacks, and the watch keeps up with touches meanwhile.

The map is drawn into an off-screen picture slightly larger than the screen. When you walk, the next picture is the last one shifted, and only the strips that came into view are drawn. Points too close together to show are skipped.

Two defensive choices came from things going wrong:

  • A bad tile becomes a hole, not a crash. Every tile is checked when it’s read. One that doesn’t parse would otherwise stop the app at every launch that shows that place.
  • Buffer size is chosen per watch model. On a Venu 4, a large buffer was drawn without error but never showed on the screen, so the map simply stayed blank. That’s now a per-device setting.

There are three colour themes: dark for AMOLED screens, a day option, and one for the older transflective (MIP) screens.

In numbers

Planet file ≈ 129 GB, ≈ $2 a month in R2
Zoom levels read 1
Tile limit / median 30,000 B / 1.6 KB
Zermatt, 330 km² 355 KB on the watch
Watch models supported 73

Request
clearance