From c34c7ee8dc28aa9176b8383187e166223ec13748 Mon Sep 17 00:00:00 2001 From: gretacb Date: Wed, 2 May 2018 16:02:09 -0500 Subject: [PATCH 1/3] zooms and scheme --- 3.0/README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/3.0/README.md b/3.0/README.md index cec548a..26b172f 100644 --- a/3.0/README.md +++ b/3.0/README.md @@ -66,9 +66,31 @@ A text description of the tileset. The description can contain any legal charact ## 3.6 `grids` ## 3.7 `legend` + ## 3.8 `maxzoom` + +OPTIONAL. Default: 30. >= 0, <= 30. + +An integer specifying the maximum zoom level. MUST be >= minzoom. + +```JSON +{ + "maxzoom": "11" +} +``` + ## 3.9 `minzoom` +OPTIONAL. Default: 0. >= 0, <= 30. + +An integer specifying the minimum zoom level. + +```JSON +{ + "minzoom": "0" +} +``` + ## 3.10 `name` OPTIONAL. Default: null. @@ -82,6 +104,17 @@ A name describing the tileset. The name can contain any legal character. Impleme ``` ## 3.11 `scheme` + +OPTIONAL. Default: "xyz". + +Either "xyz" or "tms". Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed. + +```JSON +{ + "scheme": "xyz" +} +``` + ## 3.12 `template` ## 3.13 `tilejson` From 06b66c577dec77f36e45d7780f61c74e2c9ae0b6 Mon Sep 17 00:00:00 2001 From: gretacb Date: Wed, 2 May 2018 16:47:08 -0500 Subject: [PATCH 2/3] Add default value info and minzoom MUST value --- 3.0/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/3.0/README.md b/3.0/README.md index 26b172f..2c29b28 100644 --- a/3.0/README.md +++ b/3.0/README.md @@ -35,7 +35,9 @@ TileJSON manifest files use the JSON format as described in [RFC 4627](https://w # 3. Structure -Implementations MUST treat unknown keys as if they weren't present. However, implementations MUST expose unknown key/values in their API so that API users can optionally handle these keys. Implementations MUST treat invalid values for keys as if they weren't present. If the key is required, implementations MUST treat the entire TileJSON manifest file as invalid and refuse operation. +Implementations MUST treat unknown keys as if they weren't present. However, implementations MUST expose unknown key/values in their API so that API users can optionally handle these keys. Implementations MUST treat invalid values for keys as if they weren’t present. If the the field is an optional field and the value is invalid, the default value MAY be applied. If the key is required, implementations MUST treat the entire TileJSON manifest file as invalid and refuse operation. + +Default` ## 3.1 `attribution` @@ -83,7 +85,7 @@ An integer specifying the maximum zoom level. MUST be >= minzoom. OPTIONAL. Default: 0. >= 0, <= 30. -An integer specifying the minimum zoom level. +An integer specifying the minimum zoom level. MUST be <= maxzoom ```JSON { From 65d212d870738e3efe3d6f28f99e35c4a5ec1dd2 Mon Sep 17 00:00:00 2001 From: gretacb Date: Thu, 3 May 2018 13:43:50 -0500 Subject: [PATCH 3/3] clean up --- 3.0/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/3.0/README.md b/3.0/README.md index 2c29b28..63af497 100644 --- a/3.0/README.md +++ b/3.0/README.md @@ -37,8 +37,6 @@ TileJSON manifest files use the JSON format as described in [RFC 4627](https://w Implementations MUST treat unknown keys as if they weren't present. However, implementations MUST expose unknown key/values in their API so that API users can optionally handle these keys. Implementations MUST treat invalid values for keys as if they weren’t present. If the the field is an optional field and the value is invalid, the default value MAY be applied. If the key is required, implementations MUST treat the entire TileJSON manifest file as invalid and refuse operation. -Default` - ## 3.1 `attribution` OPTIONAL. Default: null.