Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'tilepixelratio' metadata key info #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion 1.3/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,16 @@ 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.
* `description` (string): A description of the tileset's content.
* `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:

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ there are no royalties, restrictions, or requirements.
* Paul Norman (pnorman)
* Blake Thompson (flippmoke)
* Will White (willwhite)
* Martin Tůma (tumic0)