From 00aa48418d483deff898681fce4736659065b06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 23 Sep 2018 17:24:18 +0200 Subject: [PATCH 1/2] Added 'tilepixelratio' metadata key info For raster HiDPI tiles, a definition of the tile pixel ratio is required. This proposal adds such metadata key/value to the specification. The key name reflects the 'industry standard' (e.g. OpenLayers, GPXSee) in naming this tile set parameter while the floating-point value type enables maximal flexibility in tile scaling. --- 1.3/spec.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/1.3/spec.md b/1.3/spec.md index eb581ba..452486f 100644 --- a/1.3/spec.md +++ b/1.3/spec.md @@ -78,7 +78,7 @@ The `metadata` table SHOULD contain these four rows: * `minzoom` (number): The lowest zoom level for which the tileset provides data * `maxzoom` (number): The highest zoom level for which the tileset provides data -The `metadata` table MAY contain these four rows: +The `metadata` table MAY contain these five rows: * `attribution` (HTML string): An attribution string, which explains the sources of data and/or style for the map. @@ -86,6 +86,8 @@ The `metadata` table MAY contain these four rows: * `type` (string): `overlay` or `baselayer` * `version` (number): The version of the tileset. This refers to a revision of the tileset itself, not of the MBTiles specification. +* `tilepixelratio` (floating-point number): The pixel ratio of the tileset. + If not specified, `1.0` is assumed. For @2x HiDPI tiles use `2.0`. If the `format` is `pbf`, the `metadata` table MUST contain this row: From 5673f6f73680aa37fa2e8fee687695048044d97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 23 Sep 2018 17:26:11 +0200 Subject: [PATCH 2/2] Updated the authors list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a4dc290..1884531 100644 --- a/README.md +++ b/README.md @@ -59,3 +59,4 @@ there are no royalties, restrictions, or requirements. * Paul Norman (pnorman) * Blake Thompson (flippmoke) * Will White (willwhite) +* Martin Tůma (tumic0)