From f6222b5ff541ea0ff6234cfeb8207ea8bff1d929 Mon Sep 17 00:00:00 2001 From: gretacb Date: Tue, 8 May 2018 17:29:56 -0500 Subject: [PATCH 1/2] Add center field --- 3.0/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/3.0/README.md b/3.0/README.md index 26bdd66..955823a 100644 --- a/3.0/README.md +++ b/3.0/README.md @@ -62,6 +62,18 @@ The maximum extent of available map tiles. Bounds MUST define an area covered by ``` ## 3.3 `center` + +OPTIONAL. Default: null. + +The first value is the longitude, the second is latitude (both in WGS:84 values), the third value is the zoom level as an integer. Longitude and latitude MUST be within the specified bounds. The zoom level MUST be between minzoom and maxzoom. Implementations MAY use this center value to set the default location. If the value is null, implementations MAY use their own algorithm for +determining a default location. + +```JSON +{ + "center": [ -76.275329586789, 39.153492567373, 8 ] +} +``` + ## 3.4 `data` ## 3.5 `description` From cf02a6a406bbdb1bfe4a9cd78f7cf6980e436913 Mon Sep 17 00:00:00 2001 From: mapsam Date: Wed, 30 May 2018 09:57:05 -0700 Subject: [PATCH 2/2] fix line break --- 3.0/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/3.0/README.md b/3.0/README.md index 955823a..8e39680 100644 --- a/3.0/README.md +++ b/3.0/README.md @@ -65,8 +65,7 @@ The maximum extent of available map tiles. Bounds MUST define an area covered by OPTIONAL. Default: null. -The first value is the longitude, the second is latitude (both in WGS:84 values), the third value is the zoom level as an integer. Longitude and latitude MUST be within the specified bounds. The zoom level MUST be between minzoom and maxzoom. Implementations MAY use this center value to set the default location. If the value is null, implementations MAY use their own algorithm for -determining a default location. +The first value is the longitude, the second is latitude (both in WGS:84 values), the third value is the zoom level as an integer. Longitude and latitude MUST be within the specified bounds. The zoom level MUST be between minzoom and maxzoom. Implementations MAY use this center value to set the default location. If the value is null, implementations MAY use their own algorithm for determining a default location. ```JSON { @@ -128,7 +127,7 @@ A name describing the tileset. The name can contain any legal character. Impleme ## 3.11 `scheme` -OPTIONAL. Default: "xyz". +OPTIONAL. Default: "xyz". Either "xyz" or "tms". Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed. @@ -153,7 +152,7 @@ A semver.org style version number. Describes the version of the TileJSON spec th ## 3.14 `tiles` -REQUIRED. +REQUIRED. An array of tile endpoints. {z}, {x} and {y}, if present, are replaced with the corresponding integers. If multiple endpoints are specified, clients may use any combination of endpoints. All endpoints MUST return the same content for the same URL. The array MUST contain at least one endpoint. The tile extension is NOT limited to any particular format. Some of the more popular are: mvt, vector.pbf, png, webp, and jpg.