Skip to content

About

A tile service for beautiful, openly-licensed maps of the world

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Re:Earth Papers

A tile service for beautiful, openly-licensed maps of the world: OpenStreetMap rendered into a curated set of raster styles, plus a growing shelf of global basemaps and thematic layers (Natural Earth, Overture, NASA, ESA, Stamen) mirrored into R2 and served — or rendered on the fly from COGs — at the edge.

Browse everything at https://papers.reearth.land.

Endpoints

Every tileset is reachable through the same URL shapes ({id} values are listed in the table below):

URL What it is
/catalog.json Machine-readable index of every tileset: TileJSON URL, MapLibre style (themes), and the source archive URL where one exists.
/{id}/tilejson.json TileJSON 3.0.0 (?format=png|webp on multi-format rasters; default webp). Vector entries carry vector_layers.
/{id}/style.json MapLibre style, for vector tilesets that ship their own cartography (e.g. naturalearth_physical).
/{id}/{z}/{x}/{y}.{ext} XYZ tiles in the tileset's format(s).
/{id}.{tif,pmtiles} The underlying single-file archive, with HTTP Range support — see Direct archive access.
/styles/{theme}/tile/{z}/{x}/{y}.{webp,png} Rendered OSM raster tile. {theme} ∈ papers-light papers-dark protomaps-light protomaps-dark protomaps-white protomaps-black protomaps-grayscale (the old unprefixed stock ids 301 here).
/styles/{theme}/tilejson.json TileJSON for a rendered theme (?format=webp|png; default webp).
/styles/{theme}/style.json The theme's full MapLibre style, for client-side vector rendering.
/styles/{paint}/tile/{z}/{x}/{y}.{webp,png} Paint style tile — an ezu-native painterly render ({paint} ∈ paint-pencil-sketch paint-pixel-art paint-voltage paint-sumi paint-wash).
/styles/{paint}/tilejson.json TileJSON for a paint style (?format=webp|png).
/fonts/{fontstack}/{range}.pbf Glyph PBFs the styles reference — Protomaps' stacks with the CJK gap filled.
/sprites/{version}/{name}.{png,json} Protomaps sprite sheets, mirrored.
/attribution Credits page: every tileset's sources and licences (/attribution.json for the machine-readable form).
/ Interactive preview of all of the above.

All responses are CORS-open (access-control-allow-origin: *).

Tilesets

{id} Dataset Format Native max zoom Archive License
styles/{theme} OpenStreetMap via Protomaps, 7 rendered themes: the two house styles (Papers Light / Papers Dark — a label-free greyscale basemap meant to sit under data overlays) plus 5 stock Protomaps themes webp png 22 (rendered; the vector source stops at 15) — © OpenStreetMap contributors
styles/paint-{name} Painterly renders of the same OSM data, each from a hand-authored ezu style: paint-pencil-sketch (graphite on paper), paint-pixel-art (sprite-artist tile map), paint-voltage (neon night), paint-sumi (ink wash), paint-wash (watercolour built from noise). The four that shade terrain read Re:Earth Terrain, reprojected from its own z14 where the tile is deeper. webp png 19 (rendered) — © OpenStreetMap contributors, Mapterhorn
protomaps Protomaps daily basemap, mirrored monthly mvt 15 protomaps.pmtiles © OpenStreetMap contributors
naturalearth_physical Natural Earth physical layers (coastline, land/ocean, lakes, rivers, ice, reefs, islands, regions) mvt 8 naturalearth_physical.pmtiles public domain
naturalearth_admin Natural Earth admin layers (countries, units, states, counties, boundary lines) mvt 8 naturalearth_admin.pmtiles public domain
naturalearth_labels Natural Earth label points (places, admin & region labels) mvt 8 naturalearth_labels.pmtiles public domain
naturalearth_landuse Natural Earth land use (urban areas, parks & protected lands) mvt 8 naturalearth_landuse.pmtiles public domain
naturalearth_transport Natural Earth transport (roads, railroads, airports, ports, time zones) mvt 10 naturalearth_transport.pmtiles public domain
naturalearth_bathymetry Natural Earth ocean-bottom bathymetry (depth bands) mvt 6 naturalearth_bathymetry.pmtiles public domain
overture_base Overture Maps base (land, land cover/use, water, bathymetry, infrastructure) mvt 13 — ODbL / CDLA-Permissive-2.0 (per theme)
overture_buildings Overture Maps buildings (footprints + 3D parts) mvt 14 — ODbL
overture_places Overture Maps places (POI points) mvt 14 — CDLA-Permissive-2.0
overture_transportation Overture Maps transportation (road/rail/path segments, connectors) mvt 14 — ODbL
overture_divisions Overture Maps divisions (division points, areas, boundaries) mvt 12 — ODbL
watercolor Stamen Watercolor (frozen historical set) jpg 18 watercolor.pmtiles CC BY 4.0
esa_worldcover_2021 ESA WorldCover 2021 v200 — 10 m land cover webp png 13 — CC BY 4.0
blackmarble NASA Black Marble 2016 — Earth at night webp png 8 blackmarble.tif public domain
ne1 Natural Earth I — natural-palette land cover + relief webp png 6 ne1.tif public domain
ne2 Natural Earth II — idealized pre-modern world webp png 6 ne2.tif public domain
hypso Cross-blended hypsometric tints + relief + ocean bottom webp png 6 hypso.tif public domain
grayearth Gray Earth — monochrome terrain webp png 6 grayearth.tif public domain
oceanbottom Ocean Bottom — CleanTOPO2 depth colors (1:50m) webp png 5 oceanbottom.tif public domain
bluemarble NASA Blue Marble — passthrough to NASA GIBS WMTS jpeg (upstream) 8 — public domain
s2cloudless_2016 EOX Sentinel-2 cloudless 2016 — passthrough to EOX WMTS jpg (upstream) 14 — CC BY 4.0

Clients overzoom past each native max zoom automatically. The rendered themes are the exception: past the vector source's z15 the renderer reprojects that z15 ancestor into the deeper frame, so a z18 tile is a fresh render rather than a stretched bitmap. Those tiles are true 512 px (the TileJSON says so; don't hardcode tileSize: 256 on the source).

Passthrough tilesets are TileJSON-only: the tiles are served by the upstream provider, not by us. The overture_* entries sit in between — we range-read Overture's official PMTiles from S3 on demand and re-serve the tiles from our origin, storing nothing, so there is no archive URL of ours to hand out.

The registry behind this table lives in src/tilesets.ts — adding a dataset is one entry there (plus a mirror pipeline under mirror/ if we host the bytes).

Direct archive access

Datasets backed by exactly one COG or PMTiles archive expose the file itself with HTTP Range support, so cloud-native GIS clients can skip the tile pipeline entirely:

# Open a COG straight from the service with GDAL / QGIS
gdalinfo /vsicurl/https://papers.reearth.land/ne2.tif

# Or consume a PMTiles archive in MapLibre via the pmtiles protocol
pmtiles://https://papers.reearth.land/watercolor.pmtiles

Attribution

Each tileset carries its required attribution in the TileJSON / style attribution field — most map clients render it automatically. If yours doesn't, display the attribution for the tilesets you use.

Those credits are deliberately short, and that is a licence question rather than a design one. A licence that requires its notice on the produced work keeps its name in the credit — ODbL does, which is why © OpenStreetMap contributors survives on every OSM-derived tileset. CC BY 4.0 allows the required information to be given "by providing a URI or hyperlink to a resource that includes the required information" (§3(a)(2)), so those credits sit one click away, behind the Re:Earth Papers link that every credit carries. Public-domain and open-government sources are listed there too, for the reader rather than for a licence.

That link goes to /attribution (and /attribution.json). Sources and licences come from src/credits.ts; which tilesets sit under each of them is read back off the registries that serve them — the credits field on a tileset, the theme list, the paint manifest — so a tileset can't be served without being named there, which is the condition under which its sources may be folded out of the map credit at all. Paint styles publish their own credit with the style rather than from this registry.

Status

PoC, but the end-to-end path is live. Everything is rendered or served in-Worker: the OSM themes go through ezu, a WASM renderer, at roughly 0.2–0.8 s for a fresh tile and ~1.5 s for the first tile an isolate renders (it loads a sprite and a glyph set once). Cached tiles come from Cloudflare's edge cache, or R2 for the persisted ones, in well under a second.

maplibre-native is still deployed, in a container, for side-by-side comparison at /styles/{theme}/native/{z}/{x}/{y}.png and in the viewer's ?compare=ezu mode. Nothing routine reaches it, so expect a cold start of several seconds there.

See CONTRIBUTING.md for architecture, local development, and deployment, and mirror/README.md for how the datasets get into R2.

About

A tile service for beautiful, openly-licensed maps of the world

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages