-
Notifications
You must be signed in to change notification settings - Fork 51
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
attribution, name, tilejson, version, description #37
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,28 +39,76 @@ Implementations MUST treat unknown keys as if they weren't present. However, imp | |
|
||
## 3.1 `attribution` | ||
|
||
REQUIRED|OPTIONAL (description of dependents/dependencies) | ||
OPTIONAL. Default: null. | ||
|
||
**Description:** | ||
Contains an attribution to be displayed when the map is shown to a user. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking. | ||
|
||
**Example:** | ||
```JSON | ||
{ | ||
"attribution": "<a href='http://openstreetmap.org'>OSM contributors</a>" | ||
} | ||
``` | ||
|
||
## 3.2 `bounds` | ||
## 3.3 `center` | ||
## 3.4 `data` | ||
## 3.5 `description` | ||
|
||
OPTIONAL. Default: null. | ||
|
||
A text description of the tileset. The description can contain any legal character. Implementations SHOULD NOT interpret the description as HTML. | ||
|
||
```JSON | ||
{ | ||
"description": "We are volcanoes. When we women offer our experience as our truth, as human truth, all the maps change. There are new mountains." | ||
} | ||
``` | ||
|
||
## 3.6 `grids` | ||
## 3.7 `legend` | ||
## 3.8 `maxzoom` | ||
## 3.9 `minzoom` | ||
|
||
## 3.10 `name` | ||
|
||
OPTIONAL. Default: null. | ||
|
||
A name describing the tileset. The name can contain any legal character. Implementations SHOULD NOT interpret the name as HTML. | ||
|
||
```JSON | ||
{ | ||
"name": "Earthsea v2" | ||
} | ||
``` | ||
|
||
## 3.11 `scheme` | ||
## 3.12 `template` | ||
## 3.13 `tilejson` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @GretaCB in the previous version we mention the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mapsam Good eye. I'm thinking we should change this and make it super specific when to bump minor and when to bump major. For example, fixing insignificant typos/spelling errors wouldnt need any kind of version bump. But if a change affects implementation in anyway (like the spelling of a tilejson property), that would require a major bump. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice - I agree. We also mention when major.minor in the CONTRIBUTING.md which we wrote recently, which appears to nicely match your example. |
||
|
||
REQUIRED. | ||
|
||
A semver.org style version number. Describes the version of the TileJSON spec that is implemented by this JSON object. | ||
|
||
```JSON | ||
{ | ||
"tilejson": "3.0" | ||
} | ||
``` | ||
|
||
## 3.14 `tiles` | ||
## 3.15 `vector_layers` | ||
## 3.16 `version` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A few notes/questions for the
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Same. Perhaps it's saying, any implementation must ensure its tilejson major version is consistent. If updating tilejson major version, it must apply to all uses of tilejson throughout the system. ...? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
From what I understand, the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh pardon, the The
Also, can we assume it's always vector-tiles? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good point, I don't think we can. In fact now that I re-read my added example text "such as polygon or linestring geometry updates" I'm wondering if this isn't actually true, and is more related to breaking changes of the underlying data. At least for vector tiles, this would be something like "changing the name of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated the "major" example to layer name changes, and just say "tiles" instead of "vector tiles" since these could be raster tiles. |
||
|
||
OPTIONAL. Default: "1.0.0". | ||
|
||
A [semver.org](https://semver.org) style version number representing the vector tiles themselves. When changes across tiles are introduced, such as polygon or linestring geometry updates, the minor version MUST change. This may lead to cut off labels. Therefore, implementors can decide to clean their cache when the minor version changes. Changes to the patch level MUST only have changes to tiles that are contained within one tile. When tiles change significantly, the major version MUST be increased. Implementations MUST NOT use tiles with different major versions. | ||
|
||
```JSON | ||
{ | ||
"version": "1.0.0" | ||
} | ||
``` | ||
|
||
# 4. Examples | ||
|
||
Examples can be found in the example/ directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mapsam what are your thoughts on making this explicit somewhere? Perhaps part of
Structure
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Just added
MAY
could be aSHOULD
or aMUST
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these fields are Optional, going to stick with
MAY
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome - thanks @GretaCB 👍