TileJSON is a compact open JSON specification from Mapbox describing a tileset: where to fetch tiles (a URL template), within what geographic bounds they exist, the minimum and maximum zoom, attribution, and layer descriptions. It is not the tiles themselves but a machine-readable manifest wrapper that MapLibre, Mapbox GL JS and OpenLayers recognize automatically, configuring bounds, zoom and attribution on their own. On osm2cdr.ru the export generates a single 3.0.0 JSON file for the chosen area: bounds come from the bbox, center is computed automatically, and vector_layers lists the layer names. The tile URL template is configurable via a parameter.
주요 기능
TileJSON 형식 소개
TileJSON is a small JSON file that answers the client's questions: where to take tiles from, within which bounds they exist, at which zooms and whom to credit in the attribution. The specification was invented by Mapbox and is now a de facto standard: MapLibre, Mapbox GL JS and OpenLayers understand such a manifest out of the box.
The point is the separation: tiles sit in storage and are cached for a long time, while the lightweight manifest is served separately and updated when the bounds or the zooms change. One link to the JSON is enough for the client — it will set the bounds, the center, the zoom range and the attribution itself.
The export returns a single file of version 3.0.0: the bounds are taken from the selected area, the center is computed from them, the layer names are listed, the addressing scheme is xyz, and the tile URL template is set by a parameter. The tiles themselves are not inside — they are exported separately as MVT, PMTiles or raster XYZ tiles.
TileJSON 파일을 여는 프로그램
다음 프로그램과 애플리케이션으로 OSM2CDR에서 내보낸 TileJSON Tileset Metadata (3.0.0)(.json) 파일을 열고 편집하고 작업할 수 있습니다:
Format specifications
- Open standard
- 2D only
- Lossless (no quality loss)
- No attributes
- Output: 1 file
- A single TileJSON 3.0.0 manifest (bounds, center, min/maxzoom, vector_layers, configurable {z}/{x}/{y} URL); a descriptor of a tileset, not the tiles themselves.
TileJSON 지도 사용자
TileJSON 내보내기 방법
내보낸 뒤 여는 방법
- MapLibre GL JS or Mapbox GL JS — add a source with a url field pointing to this JSON; the engine will read the bounds, zooms and attribution itself.
- OpenLayers — the ol/source/TileJSON source takes the file address and configures itself from it with no extra code.
- Storage — put the JSON next to the tiles on S3, R2, GitHub Pages or your own server; it must be served with the application/json type.
- Editing the address — replace the tile template with the real path to your set, otherwise the client will keep requesting tiles that do not exist.
- Checking — open the file in a browser: it is plain JSON, all the fields are visible to the eye, and a mistake in the address is spotted immediately.
TileJSON 형식의 인기 지도
TileJSON Tileset Metadata (3.0.0) 지도 내보내기 받기
OpenStreetMap에서 전문가용 TileJSON 지도를 다운로드하세요. 즉시 생성, 모든 영역 지원.