CamperMate, the free-camping and campground app made at Triptech, ships nine offline base-map archives for Australia and New Zealand, 3.7 GB in total. They are built from OpenStreetMap with planetiler, which turns raw map data into tiles, and tileserver-gl, which draws them. They are served from Cloudflare R2, Cloudflare’s file storage. The striking finding: tileserver-gl draws each 256-pixel tile from the vector tile one zoom level up. Built the obvious way, every archive is one zoom level coarser than its filename claims. Tasmania alone gets 752 blank tiles. Wherever Victoria is installed on top of New South Wales, it draws an opaque blank rectangle over it. And the build log for every one of those archives says done.
This post covers:
- why the standard OpenStreetMap tile server draws a map from 2013, and splitting the map data from the drawing;
- the build as it runs, and the one line in tileserver-gl that makes its 256-pixel tiles come from the zoom level above (and the labels that shrink to half size when you fix that);
- a warm-up probe that can miss the server instance it is warming, and per-state map extracts that stop at a state line the archive’s box crosses;
- a continent-scale tile no clipping margin can fix, and how deep to draw;
- storing each identical tile once and WebP at quality 80, measured on WebP rather than remembered from PNG, and what the tier costs;
- shipping it in React Native, where the hole Apple’s tile renderer leaves on every pinch is closed by porting MapLibre’s tile pyramid, plus style picks and what to check first on a build like this.
The standard recipe draws a map from 2013
The pipeline was built for CamperMate, the free-camping and campground app across Australia and New Zealand, made at Triptech. It is on iOS and Android, with 1M+ downloads. Its users are in Fiordland, Kakadu and the Pilbara, where the map has to work without bars. The output is an MBTiles file: a single SQLite database holding every tile, which any client can read. The React Native side is at the end.
Every “offline OpenStreetMap tiles” guide starts with overv/openstreetmap-tile-server. It loads the map data into a PostGIS database, and Mapnik draws it in the same style as openstreetmap.org. It works, and the output looks like 2013: olive land use, mustard buildings, brick motorways. It is also one stage, so a different look means editing the style language and re-drawing everything from the database. Ruled out.
Split the data from the drawing
There are two stages. The vector archive holds the map as shapes and labels in the OpenMapTiles layout, with no styling. The picture archive is what the app loads. It can be redrawn in any MapLibre GL style without touching the data stage. The renderer is MapLibre GL Native, the same engine behind MapLibre GL JS. That is why the tiles look like a modern web map: they are one, drawn offline.
| Tool | Job | License |
|---|---|---|
| Geofabrik | OpenStreetMap source data as PBF files, plus a .poly outline per extract |
ODbL |
osmium-tool |
Cut a national map extract down to a region’s outline | GPL-3 |
planetiler |
Turn a map extract into a vector tile archive (OpenMapTiles layout) | Apache-2 |
tileserver-gl |
Draw vector tiles in a chosen style into PNG pictures, using MapLibre GL Native | BSD-2 |
cwebp (libwebp) |
Encode pictures as WebP at quality 80; the packer calls the same library in-process through Pillow at the same settings | BSD |
| OpenMapTiles fonts | Pre-built font glyph files for drawing labels | OFL |
| OpenMapTiles styles | Free MapLibre GL styles (Positron, OSM Bright, Dark Matter) | BSD-3 |
No API keys. The whole stack runs on a MacBook.
The build, as it runs
scripts/regions.json is the source of truth. For each region it gives the source extract, bounding box, deepest zoom, style, clip outline and margin. scripts/rebuild-from-manifest.sh reads it and runs, per region:
Geofabrik national PBF
→ osmium extract (clip to polygon + margin + EXTRACT_DELTA_DEG)
→ planetiler (vector .mbtiles, OpenMapTiles schema, clipped to polygon + margin)
→ tileserver-gl (render each vector tile via the /512/ route)
→ render-and-pack (downscale 512→256, unsharp, WebP q80, dedup) → <region>.mbtiles
→ apply-lowzoom-base (overwrite z≤9 with the shared national base)
build-offline-tiles-fast.sh builds one region of that. render-and-pack-deduped.py is the draw, encode and pack step. Four traps in there can each cost a day:
- Planetiler needs Java 21. macOS’s Java locator (
/usr/libexec/java_home -v 21) returns the closest match rather than failing. On a machine with only Java 17, it returns the 17 path and reports success, and planetiler dies with a class-version error. So the script runsjava -versionon each candidate and checks the major version itself. It also runs the released jar, not the container. Adocker pull ghcr.io/onthegomap/planetilercan hang for hours (13, in one case) with no bytes and no error. Docker asks the macOS keychain for aghcr.iocredential entry that exists but holds nothing, and blocks. - OpenMapTiles styles point at
api.maptiler.comand need a key. The build usesjqto rewrite the style’s data source to the local archive, repoint every layer at it, and set the font path to the local glyph files. - The font glyph files are not on the
openmaptiles/fontsmaster branch, which has only the source fonts. They are the v2.0 release asset, about 74 MB. Without them, tileserver-gl returns a server error on every tile with a label. - Planetiler’s
boundsandcentermetadata upset MapLibre GL Native. The build deletes those two rows from the archive’s metadata table after planetiler runs.
Both images track :latest on purpose. Each build writes the resolved version into the archive: planetiler_version on the vector side, tileserver_version on the picture side. Without it, nobody can tell which renderer produced an archive, and the next defect is hard to place.
tileserver-gl’s 256-pixel tiles are a zoom level short
A 256-pixel tile at zoom z (/styles/{id}/{z}/{x}/{y}.png) looks as if it is drawn from the vector tile at zoom z. It is drawn from the vector tile one zoom level up. The comment is in serve_rendered.js: “For 512px tiles, use the actual maplibre-native zoom. For 256px tiles, use zoom - 1.” MapLibre’s vector tiles are 512 pixels across. So a 256-pixel tile at zoom z covers exactly one quarter of the tile one level up, and that is the one it is drawn from.
That has two consequences. Every archive built through that route carries the detail of the level above its filename, at the same tile count and byte cost. And any tile whose quarter of the parent is empty comes out blank, even when the tile’s own data has features.
The worked case is the Tasmanian tile at zoom 12, column 3705, row 1515. Its own vector tile carries seven river features: the Looker and Andrew Rivers, inside Franklin-Gordon Wild Rivers National Park. They match the style’s filters, and the style would paint them as a light-blue line about one pixel wide. But the parent at zoom 11 has nothing in that quarter, so through the 256-pixel route the tile comes out as flat background. Tasmania has 752 like it.
So the packer requests the 512-pixel version of each tile (/styles/{id}/512/{z}/{x}/{y}.png) and shrinks it to the 256-pixel tile that ships. Its URL builder refuses to build the bare route. This also makes the packer’s duplicate detection correct. Only at the tile’s own zoom is a drawing a pure function of that tile’s own vector bytes.
That creates the next problem. The 512-pixel canvas covers the same ground as the 256-pixel tile. Text set at 12 pixels in the style is 12 pixels on the canvas, and 6 pixels on the phone. Unreadable. Asking for the double-resolution variant (@2x) does not help, because it scales canvas and text together. scripts/scale-style-sizes.py doubles the style’s pixel sizes before drawing: text size, icon size, line width, text halo width and offsets. It leaves zoom stops, opacities and font-relative offsets alone.
And shrinking a picture smears the lettering. On one Queenstown tile at zoom 14, counting the mid-grey pixels around each solid dark pixel of text:
| How the tile was made | Mid-grey pixels per dark pixel |
|---|---|
| drawn directly at 256 pixels | 2.4 |
| the 256-pixel route (zoom minus one) | 2.5 |
| 512-pixel route, plain shrink, Lanczos filter | 6.4 |
| 512-pixel route, plain shrink, Hamming filter | 7.3 |
| 512-pixel route, shrink, then sharpen (radius 1.0, 60%, threshold 3) | 2.8 |
The filter choice barely moves it; the smear is inherent to draw-then-shrink. The sharpening pass costs about 20% more bytes. Shipping 512-pixel tiles outright would cost 162% more.
A freshly started tile server returns success
A freshly started tileserver-gl answers before its style and fonts have loaded. The tiles it returns in that window are bare background, and a packer that trusts the status code writes them as success.
The build runs several tileserver instances and routes each tile to one of them by a hash of its coordinates. A warm-up that probes through that same routing is a trap: an instance can receive no probe at all, stay cold, and still let the check print warm (0s). Probing six tiles that way baked blank tiles into six regions in one rebuild: 880, 20, 126, 2,905, 107 and 1,371. Every one of them passed validation.
So the warm-up sends the eight most detailed sample tiles to every instance. It succeeds only when all of them draw something, and a 120 s deadline fails the build rather than warning. After that, the renderer refetches any tile that has features but comes back blank, up to four times.
“Blank” needs defining too. The obvious test, “near-uniform and light”, counts two real things as empty. OSM Bright paints solid woodland as a very faint wash, which draws as a flat pale green (RGB 233, 236, 223). Glacier is white at 30% opacity (RGB 250, 247, 244). That misreads 297 correctly drawn Tasmanian tiles, and most of the Southern Alps.
Blank means within one step per colour channel of the style’s background colour (RGB 248, 244, 240). Every script that decides it shares that definition. Twenty Tasmanian tiles still draw blank after retries, and they are correct. Their only features are national park boundaries, minor administrative boundaries and mountain peaks, none of which OSM Bright paints. The blank counter is only advisory. The gate is validate-mbtiles-coverage.py, which checks each tile against the vector source rather than against a solid rectangle.
Per-state extracts blank the neighbouring state
Geofabrik’s per-state map extracts look like the obvious source for the Australian regions: they exist and need no cutting. But a per-state extract stops at the state line, and a region’s bounding box crosses it. A Victoria archive built from one holds tiles over New South Wales with nothing drawn on them. They are opaque, at the same stacking level, so they paint over the New South Wales archive’s real map.
So regions come from the national extract. Each is cut to Geofabrik’s outline for the region plus a declared margin, a quarter of a degree in regions.json. It is then limited to the region’s bounding box. The limit matters. Tasmania administers Macquarie Island, 1,500 km away, so its outline is a ten-point box reaching 161 degrees east and 56 degrees south. Adding a margin to that claims a tract of Southern Ocean. Hand-drawn rectangles, the other obvious choice, overlap by up to nine degrees of longitude between New South Wales and Victoria.
There are two cuts, and they are deliberately different widths. Planetiler emits any tile that touches the outline, but osmium only supplies data inside it. Cut both to the same shape and the edge tiles ship with a sliver of map. So the data extract is cut 0.12 degrees wider than the tiles are. repair-sliver-tiles.py exists because of exactly this, on the border between South Australia and Victoria. That border runs north to south, almost parallel to the tile grid.
The wide views belong to the whole country
Cutting fixes borders at street zoom. It cannot fix them at continent zoom. At zoom 6 a single tile spans most of Australia. Every region draws that tile from its own cut-down data, so each draws its own state and leaves the rest bare (the right-hand panel above). Here is the measured agreement between neighbouring archives when each draws its own wide zooms:
| Zoom level | Agreement between neighbours |
|---|---|
| 6 | 0–60% |
| 8 | 17–96% |
| 10 | 73–100% |
| 12 | 83–100% |
| 14 | 100% |
No margin helps, because the tile is larger than any sane margin. The answer is what Organic Maps does with its world file. Draw the wide zoom levels once, from the uncut national extract, and copy the identical set into every region. apply-lowzoom-base.py overwrites zoom 9 and below in each archive as part of the build.
Why stop at 9? Each level roughly triples the cost. On the Australian base archive, zoom 9 is 3,534 tiles and 5.8 MB, zoom 10 is 13,763 and 14.4 MB, and zoom 11 is 52,706 and 44.2 MB. The shared base file for zooms 0 to 9 is 10 MB for Australia and 1.6 MB for New Zealand.
The gate is scripts/tests/test_region_overlap.py. It checks six overlapping pairs of regions at zooms 6, 8, 10, 11, 12 and 14. Tiles present in both archives must draw the same picture, compared pixel by pixel, to at least 95% agreement. A tile with one state’s half drawn is not blank; it is wrong. Zooms 10 and 11 are sampled on purpose. Zoom 10 is the first level each region draws for itself, so it carries the risk the shared base removes below it. If it ever fails, the base goes one level deeper. The gate passes every pair at every zoom. Without the national cut and the shared base, one pair measures 37%.
How deep to draw
Each zoom level quadruples the tile count, and tiles with ink on them compress worse than empty ones. Measured on the current au-nsw.mbtiles:
| Zoom level | Tiles | MB |
|---|---|---|
| 12 | 15,211 | 26.5 |
| 13 | 57,199 | 95.0 |
| 14 | 209,424 | 278.6 |
The deepest level is 64% of the archive’s 433 MB of tile bytes. That is the whole argument in one table.
New Zealand is drawn down to zoom 15 and Australia to zoom 14, and the app enlarges tiles past that. That is four times fewer tiles across a continent, and New Zealand is small enough that the extra level is affordable. The deepest level is also where the 512-pixel route earns its keep. Drawn through the 256-pixel route, a zoom-15 archive carries zoom-14 detail. Drawn through the 512-pixel route and shrunk, it carries the detail its number promises, for the same tile count. One more zoom level costs roughly three times the archive. Fixing the route costs nothing.
Storing each identical tile once, measured on WebP
The MBTiles specification allows a layout where identical tiles share one stored copy, and the packer writes it:
CREATE TABLE images (tile_id TEXT PRIMARY KEY, tile_data BLOB);
CREATE TABLE map (zoom_level, tile_column, tile_row, tile_id);
CREATE UNIQUE INDEX map_index ON map (zoom_level, tile_column, tile_row);
CREATE VIEW tiles AS
SELECT map.zoom_level, map.tile_column, map.tile_row, images.tile_data
FROM map JOIN images ON images.tile_id = map.tile_id;
The tile id is a hash of the tile’s bytes, so identical tiles collapse to one row in images. The tiles view hides the difference. Both native readers run one query, tile data by zoom, column and row, and it works against either layout.
The duplicate handling that really pays happens earlier, at the vector stage. Planetiler already stores each distinct tile once: byte-identical vector tiles share one data id. In Western Australia about 70% of tiles are duplicate desert. The packer groups tiles by that data id and zoom level, draws one tile per group, and points every coordinate in the group at the result. It groups by zoom as well as bytes, because the same vector bytes draw differently at different zooms. Western Australia draws in 9 minutes, against about 45 for the naive one-tile-at-a-time loop.
The shared-copy layout has a reputation for a 50% saving, earned on PNG tiles. Measured on the shipping WebP archives:
| Region | Tile positions | Distinct pictures | Flat layout (MB) | Shared-copy layout (MB) |
|---|---|---|---|---|
| nz-south | 857,288 | 241,253 | 484.1 | 362.6 |
| au-wa | 806,607 | 246,804 | 389.5 | 280.7 |
| au-nsw | 304,356 | 214,936 | 433.2 | 415.9 |
On the South Island, 72% of coordinates point at a shared picture, but the byte saving is 25%, because the tiles that share are the cheap ones. The shared layout also needs two things a flat table does not. SQLite’s own storage report puts the coordinate table at 48.2 MB and the picture index at 13.7 MB. So the net saving is about 60 MB, 11% of a 542 MB file. On New South Wales, which is mostly ink, it is 4%. The layout is still worth having, but WebP already takes most of what it gives a PNG archive.
WebP at quality 80
PNG is what tileserver-gl emits. It is the wrong format for smoothed lines and faint land-cover washes, which do not reduce to a small palette. On 1,000 Tasmanian tiles, WebP at quality 80 comes to 19.4% of the PNG bytes. That takes the projected size of the tier from about 10.7 GB in PNG to about 2 GB. Both platforms decode WebP natively, iOS from version 14 and Android from API level 14. Both native readers pass the raw bytes straight through. The archive’s format metadata says webp, so the specification stays honest.
The encoding happens inside the packer, with Pillow’s encoder at the same quality and compression effort as the cwebp program. Launching cwebp with two temporary files per tile means about 35,000 launches and 70,000 temporary writes for Tasmania alone.
Three more settings keep the build fast. SQLite runs in write-ahead-log mode during the build. Commits are batched per 200 tiles. And there are 16 client threads, because tileserver-gl keeps between 8 and 16 renderers, so 8 threads leave half of them idle. Together they take Tasmania from 477 s to 259 s, with byte-identical output at either thread count. Before it ships, the archive is switched back to ordinary journal mode and compacted, so there is no log file beside it.
What the tier costs
Against archives built the obvious way, the tier is about 1.2 GB bigger:
| Region | Obvious way (MB) | Current (MB) |
|---|---|---|
| Queensland | 442 | 693 |
| North Island | 468 | 617 |
| New South Wales | 334 | 564 |
| South Island | 426 | 542 |
| Western Australia | 312 | 426 |
| Victoria | 178 | 320 |
| South Australia | 172 | 251 |
| Northern Territory | 109 | 165 |
| Tasmania | 65 | 117 |
| total | 2,506 | 3,695 |
Every megabyte of the difference buys something a user can see:
- real content across state borders, where per-state extracts left blanks;
- labels at double size, to survive the shrink;
- the sharpening pass, at about 20%;
- the shared national base.
One result is unexplained. Drawing at the tile’s own zoom, on its own, makes every archive slightly smaller, before the label and border work takes it up: New South Wales goes from 334 MB to 309 MB. Dropping OSM Bright’s water-pattern layer helps too: it is a repeating wave image that turns flat water into two-tone noise. Dropping it saves about 17% on a water-heavy sample, and it is dropped for every region.
R2 charges nothing when devices download from it, which is why it is R2 and not Amazon S3. The catch is on the way in. Uploads go through the S3-compatible API, because Cloudflare’s own upload command stops at 300 MiB, under half our regions. And the download host serves the archives with a 30-day cache lifetime. Replace a file without purging the cache, and Cloudflare’s edge hands out the old file for up to 30 days. So publish-offline-map.sh purges, then verifies by downloading a byte range of the new file. Checking only the headers is not enough: a headers-only request reports the new version while a plain download can still get the old cached copy.
Shipping it in React Native
The pipeline does not care what reads it. On the web, MapLibre’s Martin tile server reads MBTiles directly and serves them to MapLibre GL JS. Flutter has flutter_map with MBTiles plugins. CamperMate’s map is react-native-maps, which wraps Google Maps on Android and Apple’s MapKit on iOS. Its tile layer component (<UrlTile>) expects a web address pattern to fetch tiles from.
There are three obvious options, all bad:
- unpack the archive into one file per tile and use the local-file tile component, losing the single-file archive;
- run a small web server inside the app, paying for startup, port management and battery;
- replace the map view with MapLibre’s React Native component, and rewrite every marker, callout and gesture.
The fourth is a native patch that teaches the tile component a new address scheme. That keeps the component in components/map/OfflineTilesRenderer.tsx ordinary. Every installed region draws through one layer. Its address lists each archive with its zoom range:
<UrlTile
key="mbtiles-set"
urlTemplate={layer.urlTemplate} // mbtiles-set://{"archives":[{path, minZoom, maxNativeZ, maxZoom}, …]}
minimumZ={layer.minimumZ}
maximumNativeZ={layer.maximumNativeZ}
maximumZ={layer.maximumZ}
zIndex={1000}
shouldReplaceMapContent={process.env.EXPO_OS === "android"}
/>
One <UrlTile> per region, with an mbtiles:// address, doesn’t scale. A user with every Australian state installed gets eight stacked tile layers. The map asks every layer for every visible tile, each runs its own SQLite lookup, and tiles where archives overlap are drawn twice. Panning struggles, more so over satellite. With one layer, for each tile, the native code asks the archives in a fixed order, skipping any whose bounds don’t touch the tile. The first archive that has the tile wins. Overlapping archives hold the same map, so which one answers doesn’t matter, as long as it is the same one on every redraw.
Each archive’s file path is worked out again from the region id on every render, not read from the app’s saved state. iOS moves the app’s storage folder to a new name on every upgrade, and a saved absolute path makes downloaded regions vanish after an update. Replacing the base map is Android-only. On iOS, replacing it hides it everywhere, blanking everything outside the installed regions.
On Android, the patch adds an archive reader, a compositor and the archive set, and routes these addresses through Google’s tile provider. Past the deepest drawn zoom, it crops and enlarges the parent tile. Below that, it stitches the four child tiles from the next zoom down into one 512-pixel tile, so Google Maps draws twice the linear detail. A 24 MB most-recently-used cache holds the stitched output. Google’s tile overlay owns tile management, pyramid included, so that is all Android needs.
The readers on both platforms check the file’s size and modification time on every lookup. A region deleted and re-downloaded lands at the same path. A cached file handle would keep reading the deleted file until the app restarted.
iOS is where the work is, because MapKit gives you nothing. Apple’s tile renderer draws only the current zoom level, and draws nothing where those tiles have not loaded. So every pinch punches a hole straight through the offline layer to Apple’s base map, and leaves grey hairlines at tile seams. MapLibre, Google and Leaflet all keep a pyramid of loaded tiles, and stand in with the nearest loaded ancestor, scaled up.
So the patch installs its own overlay renderer, AIRMapMBTilesRenderer. It always tells MapKit it can draw, and draws from a pyramid.
A home-made pyramid easily gets the shape right and the details wrong. It consults parents before children. It draws one stand-in, instead of the children it has plus a parent behind them. And it keeps no record of which tiles it has already checked, so neighbouring tiles each re-walk the same chain of parents.
So AIRMapTilePyramid.swift is a port of MapLibre Native’s tile-selection routine (algorithm::updateRenderables) and its tile-id types, under their BSD-2 notice. Upstream’s tests come with it, so the preference order is testable. It lives in its own small Swift package, modules/mbtiles-tiles, with its own XCTest cases (Apple’s test framework). It is separate because adding any Swift to the react-native-maps package makes the build tool generate a combined header. That header fails on the C++ in React’s generated files.
Five things only a pinch on a device shows:
- Lazy decoding. iOS decodes an image lazily, so left alone every tile is decoded inside MapKit’s draw call. Tiles are decoded as soon as they load.
- One at a time. Decoding on the one-at-a-time read queue makes tiles arrive one at a time.
- Stale scale. MapKit’s “repaint this area” call only repaints while the map is still at the scale it was given. A scale captured when the tile is requested is stale by the time the tile lands mid-pinch, so correct tiles sit in the cache under a blurry ancestor. Repaints are scale-independent, and merged into one per frame.
- Sparse archives. The archives are sparse, so a missing row at the deepest declared zoom can punch dead patches into covered ground.
- The shared base, drawn twice. Every region carries the same wide-zoom base. With a renderer per region at the same stacking level, one region’s blurry world tile lands on another’s detail, by draw order. So each archive’s tiles outside its own bounds are ignored, and the single layer does the same per archive. This is what makes the North Island look broken while the South looks fine.
Does owning the renderer cost retina resolution? It does not. Tile renderers pick the zoom level from screen size, and expect the provider to return a bigger image. Android does that with its stitched tile. iOS draws one level deeper instead, since four 256-pixel tiles over the same ground are the same pixels as one 512-pixel tile. It is capped at the deepest drawn zoom, because past it the deeper tiles are crops of the same parent. Without that, the offline map draws at half Android’s detail on every iOS retina screen.
The geometry both platforms share is utils/tileMath.ts, with tests derived from the maths of the Web Mercator projection. The native test projects under native-tests/ compile the real patched sources by reference. On Android they run under Robolectric, a tool that runs Android code on a laptop, against real SQLite archives. On iOS they are the XCTest bundle. I intend to open-source the module.
Style picks
All styles draw from the same vector MBTiles, so the choice changes which file ships and nothing upstream:
- Positron. Minimal and white, designed as a backdrop for other content. Wrong when the map is the content.
- OSM Bright. What ships. Coloured roads, green parks, motorway shields, full POI labels.
- Dark Matter. Positron’s dark-mode equivalent, a future night-mode option.
- Voyager. CARTO’s, not OpenMapTiles’. There is no
openmaptiles/voyager-gl-stylerepository, so the address you find beside the other three returns a 404. Fetch it from CARTO’s own servers. Its layers use the plain OpenMapTiles layout, but its data source is namedcarto, which the local rewrite normalises. It also asks for Montserrat and two Chinese, Japanese and Korean typefaces the OpenMapTiles bundle lacks. tileserver-gl logsFont not foundand falls back to Noto Sans. Labels draw fine; the noise is expected.
What to check first on a build like this
- Read the renderer’s request handler before trusting the request’s name. The “zoom minus one” line is right there in
serve_rendered.js. - Gate the build on a coverage check against the vector source. A packer that prints
donefor 752 blank tiles will upload them. - Compare overlapping archives pixel for pixel across the zoom range, not at one level. Otherwise a defect that affects every pair looks like one pair’s bug.
- Record the exact version of every tool that tracks
latest, in the file it produced.
The tools are mature, and the licensing is permissive: OSM is ODbL, the OpenMapTiles styles are BSD-3, planetiler is Apache-2 and tileserver-gl is BSD-2. The scripts, the fast tests and the overlap gate are in scripts/ of the CamperMate app. If you are heading to Australia or New Zealand and want to see the tiles in production, grab CamperMate on iOS or Android. It is free, needs no account, and the offline maps are under the “Offline Maps” tab.
Header photo by Marek Piwnicki on Unsplash.
