Vietnam road + building tiles, as PMTiles
Vector tiles (Mapbox Vector Tile) for the whole of Vietnam in PMTiles v3
archives, baked from an OpenStreetMap extract. This repository exists to be read over HTTP
range requests straight from a browser — Hugging Face serves 206 Partial Content with
Access-Control-Allow-Origin: *, which is what the PMTiles client needs and what most free
static hosts do not provide.
| file | size | contents |
|---|---|---|
national.pmtiles |
430.4 MiB | roads, buildings, lane markings, lane arrows, junctions |
signposts.pmtiles |
0.7 MiB | destination signposts |
national.pmtiles.provenance.json |
— | which OSM snapshot this bake came from |
Provenance
- Extract
vietnam-latest.osm.pbf, OSM replication timestamp 2026-08-05T20:21:23Z - Baked 2026-08-12T04:17:13.100Z
- Features 2,763,295 roads, 1,257,440 buildings, 3,233,838 junctions
Using it
// maplibre-gl + pmtiles
const p = new pmtiles.Protocol();
maplibregl.addProtocol("pmtiles", p.tile);
map.addSource("nat", {
type: "vector",
url: "pmtiles://https://huggingface.co/datasets/atemm99/national-map-tiles/resolve/main/national.pmtiles",
});
Zoom window is carried in the archive header; read it with pmtiles show.
What is measured and what is inferred
The road geometry and tags are OSM's. Three things in these tiles are estimates, labelled as such rather than survey:
- lane widths — derived from a per-class default lane count where
lanesis untagged - building heights —
height/building:levelswhere tagged, otherwise a per-type default; every building carries aheight_sourcesaying which - speed limits —
maxspeedis tagged on under 1% of Vietnamese highway ways, so the consuming app falls back to the statutory default for the road class. That is a legal default, not a posted sign.
Do not treat any of the three as ground truth.
Licence
OpenStreetMap data, © OpenStreetMap contributors, available under the Open Database License 1.0. These tiles are a derived database: if you redistribute them or anything derived from them, you must keep the attribution and the share-alike terms.
- Downloads last month
- 24