Skip to content

Commit a0200b4

Browse files
authored
v1.9.0 changelog (#2111)
- Bump version file - Explicate schema license and other docs changes
1 parent fe414f7 commit a0200b4

File tree

6 files changed

+179
-19
lines changed

6 files changed

+179
-19
lines changed

docs/CHANGELOG.md

Lines changed: 118 additions & 2 deletions
Large diffs are not rendered by default.

docs/LICENSE-SCHEMA.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) 2015-2018 Mapzen
2+
Copyright (c) 2019 Linux Foundation
3+
4+
# The MIT License (MIT)
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal in
8+
the Software without restriction, including without limitation the rights to
9+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10+
the Software, and to permit persons to whom the Software is furnished to do so,
11+
subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

docs/README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
1-
# Mapzen Vector Tile documentation
1+
# Tilezen documentation
22

3-
This repository contains documentation for Mapzen's Vector Tile service.
3+
## Tilezen vector tile schema
4+
5+
* [layers.md](layers.md) - Layers in the vector tile service detailed incuding available `kind` values and other tags.
6+
* [data-sources.md](data-sources.md) - Where does Tilezen's data come from?
7+
* [disputed-features.md](disputed-features.md) - How we handle dynamic viewpoints for disputed features.
8+
* [attribution.md](attribution.md) - Giving credit where credit is due, and when the data licence requires it.
9+
10+
## Mapzen's Vector Tile service
11+
12+
_NOTE: Mapzen's commercial service shut down in 2018. Limited tile access is available at [nextzen.org](https://www.nextzen.org/)_
413

514
* [index.md](index.md) - This is where all the good stuff is.
615
* [use-service.md](use-service.md) - Use the vector tile service, layers, and tile formats.
716
* [api-keys-and-rate-limits.md](api-keys-and-rate-limits.md) - Don't ruin a good thing.
817
* [display-tiles.md](display-tiles.md) - Display vector tiles in a map in Tangram, MapboxGL, D3, and other frameworks.
9-
* [layers.md](layers.md) - Layers in the vector tile service detailed incuding available `kind` values and other tags.
10-
* [data-sources.md](data-sources.md) - Where does Mapzen's data come from?
11-
* [disputed-features.md](disputed-features.md) - How we handle dynamic viewpoints for disputed features.
1218
* [http-status-codes.md](http-status-codes.md) - HTTP status codes.
13-
* [attribution.md](attribution.md) - Giving credit where credit is due, and the data licence requires it.
1419

1520
## Contributing
1621

1722
If you have any comments on the documentation, you can drop a note as a GitHub issue, or fork it and add your own exercises.
23+
24+
## Licenses
25+
26+
- The Tilezen vector tile schema is [MIT](LICENSE-SCHEMA.md)
27+
- The project documentation and Tilezen vector tile schema documentation is [CC-BY 4.0](LICENSE-DOCS.md)
28+
- The code and all other material to generate the tiles is [MIT](LICENSE.md)
198 KB
Loading

docs/layers.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ Combination of OpenStreetMap administrative boundaries (zoom >= 8) and Natural E
251251

252252
When there is a **boundary dispute** between two countries, the default boundary between them is generally shown according to the _de facto_ status marking where one country's on the ground administration ends and another's begins. The boundary line itself is marked `disputed`, and the extend of the other country's claim is tagged with one of `disputed_breakaway`, `disputed_claim`, `disputed_elusive`, and `disputed_reference_line`.
253253

254-
Audiences in different countries may have different expectations and legal requirements so Tilezen optionally supports _de jure_ boundary viewpoints with `kind:xx` properties, where `xx` is a lower-cased [ISO 3166-1 codes](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) with support for `ar`, `bd`, `br`, `cn`, `de`, `eg`, `es`, `fr`, `gb`, `gr`, `id`, `il`, `in`, `it`, `jp`, `ko`, `ma`, `nl`, `np`, `pk`, `pl`, `ps`, `pt`, `ru`, `sa`, `se`, `tr`, `tw`, `us`, `vn`. Use these properties to "turn off" `unrecognized_country` and `unrecognized_region` boundary lines, and restyle the claims as `country` and `region`. The range of values is the same as for `kind`, and should be used in conjunction with `kind` as `kind:xx` in a coalesce as it's only included when that country's viewpoint is different than the default. These should be paired with **places** layer viewpoint support for country and region capitals.
254+
Audiences in different countries may have different expectations and legal requirements so Tilezen optionally supports _de jure_ boundary viewpoints with `kind:xx` properties, where `xx` is a lower-cased [ISO 3166-1 codes](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) with support for `ar`, `bd`, `br`, `cn`, `de`, `eg`, `es`, `fr`, `gb`, `gr`, `id`, `il`, `in`, `it`, `jp`, `ko`, `ma`, `nl`, `np`, `pk`, `pl`, `ps`, `pt`, `ru`, `sa`, `se`, `tr`, `tw`, `ua`, `us`, `vn`. Use these properties to "turn off" `unrecognized_country` and `unrecognized_region` boundary lines, and restyle the claims as `country` and `region`. The range of values is the same as for `kind`, and should be used in conjunction with `kind` as `kind:xx` in a coalesce as it's only included when that country's viewpoint is different than the default. These should be paired with **places** layer viewpoint support for country and region capitals.
255255

256-
Some disputed boundaries, like the [China 9-dashed line](https://en.wikipedia.org/wiki/Nine-dash_line), are marked `unrecognized_country` by default and are only available in a specific `kind:xx` viewpoint (in this case `kind:cn` and `kind:tw`).
256+
Some disputed boundaries, like the [China 9-dashed line](https://en.wikipedia.org/wiki/Nine-dash_line), are marked `unrecognized_country` by default and are only available in a specific `kind:xx` viewpoint (in this case `kind:cn` and `kind:tw`).
257257

258258
## Buildings and Addresses
259259

@@ -268,7 +268,7 @@ Individual `building_part` geometries from OpenStreetMap following the [Simple 3
268268

269269
Tilezen calculates the `landuse_kind` value by intercutting `buildings` with the `landuse` layer to determine if a building is over a parks, hospitals, universities or other landuse features. Use this property to modify the visual appearance of buildings over these features. For instance, light grey buildings look great in general, but aren't legible over most landuse colors unless they are darkened (or colorized to match landuse styling).
270270

271-
Label position points may also have `closed` or `historical` kind_detail values if the original building name ended in "(closed)" or "(historical)", respectively. These points will have a `min_zoom` of 17, suggesting that they are suitable for display only at high zooms. _See related bug fix in [#1026](https://github.com/tilezen/vector-datasource/issues/1026)._
271+
Label position points may also have `closed` or `historical` `kind_detail` values if the original building name ended in "(closed)" or "(historical)", respectively. These points will have a `min_zoom` of 17, suggesting that they are suitable for display only at high zooms. _See related bug fix in [#1026](https://github.com/tilezen/vector-datasource/issues/1026)._
272272

273273
Values for `kind_detail` are sourced from OpenStreetMap's `building` tag for building footprints and from `building:part` tag for building parts.
274274

@@ -278,6 +278,7 @@ Note that building geometries, like most geometries in Tilezen tiles, are clippe
278278

279279
* `name`
280280
* `id`: from OpenStreetMap
281+
* `root_id`: so building parts can be associated back with their "root" building relation
281282
* `kind`: see below
282283
* `kind_detail`: see below
283284
* `source`: `openstreetmap.org`
@@ -869,7 +870,7 @@ The values of population rank are derived from the `population` value as follows
869870
* 1: Less than 200
870871
* 0: No `population` value available or `population` value zero.
871872

872-
When available, for the largest cities, OSM localities gets their population_rank from NaturalEarth's `pop_max` tag because NaturalEarth `pop_max` is for the metro area and is more useful for label grading in the stylesheet.
873+
When available, for the largest cities, OSM localities gets their `population_rank` from NaturalEarth's `pop_max` tag because NaturalEarth `pop_max` is for the metro area and is more useful for label grading in the stylesheet.
873874

874875
## Points of Interest
875876

@@ -1705,7 +1706,7 @@ Network value include:
17051706
* `CA:NT`
17061707
* `CA:ON:primary`
17071708
* `CA:ON:secondary`
1708-
* `CA:PE`
1709+
* `CA:PE` (NOTE: was `CA:PEI` in error before)
17091710
* `CA:QC:A`
17101711
* `CA:QC:R`
17111712
* `CA:SK:primary`
@@ -2487,12 +2488,15 @@ Tilezen calculates the composite exterior edge for overlapping water polygons an
24872488
* `id`: OpenStreetMap feature `osm_id`, when sourced from `openstreetmap.org`
24882489
* `is_tunnel`: for `line` features only (`true` values only)
24892490
* `wikidata_id`: when present, the [Wikidata](https://www.wikidata.org) ID corresponding to this feature.
2491+
* `alkaline`: boolean
2492+
* `intermittent`: boolean
2493+
* `reservoir`: boolean
24902494

24912495
#### Water `kind` values:
24922496

24932497
* `basin` - polygon
24942498
* `bay` - point, intended for label placement only. With `tile_kind_rank`, see below.
2495-
* `canal` - line
2499+
* `canal` - line, can also indicate `boat: true` when navigable by a vessel
24962500
* `ditch` - line
24972501
* `dock` - polygon
24982502
* `drain` - line
@@ -2522,12 +2526,12 @@ When `water` polygons are sourced from OpenStreetMap, we add `kind_detail` value
25222526
* `river`
25232527
* `stream`
25242528

2525-
Additionally, a `reservoir: true` or `alkaline: true` value can be present on the appropriate `kind=lake` features. Intermittent water features that sometimes run dry or disappear seasonally are marked `intermittent: true`.
2529+
Additionally, a `reservoir: true` or `alkaline: true` value can be present on the appropriate `kind=lake` features. Intermittent water features that sometimes run dry or disappear seasonally are marked `intermittent: true` (including implied infiltration and detention features).
25262530

25272531
The kinds `bay`, `strait` and `fjord` are ranked by size and given a `kind_tile_rank` property that starts from 1 and counts up as the feature gets smaller. Note that the ranking is done on a "metatile", which means that each tile (of size 256px, 512px or other) won't necessarily contain the full range from 1 to N of `kind_tile_rank`s.
25282532

25292533
**Gotchas:**
25302534

25312535
* `lake` features with `alkaline: true` and `playa` features are sourced from Natural Earth at low zooms and are sparesly populated at high zooms from OpenStreetMap. Zooming in, your feature may disappear (when there is no equivalent in OpenStreetMap), or the feature may still exist as a water or lake polygon but without the alkaline indicator. Beware the desert around Great Salt Lake in Utah!
2532-
* `lake` features from Natural Earth sometimes change to `water` features on zoom into OpenStreetMap data. _See planned bug fix in [#984](https://github.com/tilezen/vector-datasource/issues/984). However, kind_detail value is available._
2536+
* `lake` features from Natural Earth sometimes change to `water` features on zoom into OpenStreetMap data. To work around this, also use `kind_detail` at high zooms.
25332537
* Some of the minor kinds (like `bay`, `strait`, and `fjord`) are used for label_placement points only, as their area would duplicate water polygons already present from osmdata.openstreetmap.de.

tilejson/tilejson.json.erb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@
2727
"fields" : {
2828
"name" : "String. Localized name variants are in properties like 'name:en'. Common value.",
2929
"id" : "Number. Common value.",
30-
"kind" : "String. Common value, one of: aboriginal_lands, country, county, disputed, disputed_breakaway, disputed_claim, disputed_elusive, disputed_reference_line, indefinite, indeterminate, lease_limit, line_of_control, macroregion, map_unit, municipality, overlay_limit, region.",
31-
"kind:*": "String. Optional property for alternate points of view in boundaries layer with kind:* properties (like kind:iso). The following country and international organizations worldviews are supported: Argentina (ar), Bangladesh (bd), Brazil (br), China (cn), Egypt (eg), France (fr), Germany (de), Greece (gr), India (in), Indonesia (id), Israel (il), Italy (it), Japan (jp), Morocco (ma), Nepal (np), Netherlands (nl), Pakistan (pk), Palestine (ps), Poland (pl), Portugal (pt), Russia (ru), Saudi Arabia (sa), South Korea (ko), Spain (es), Sweden (se), Taiwan (tw), Turkey (tr), United Kingdom (gb), United States (us), Vietnam (vn), ISO (iso)",
30+
"kind" : "String. Common value, one of: aboriginal_lands, country, county, disputed, disputed_breakaway, disputed_claim, disputed_elusive, disputed_reference_line, indefinite, indeterminate, lease_limit, line_of_control, macroregion, map_unit, municipality, overlay_limit, region, unrecognized_dispute.",
31+
"kind:*": "String. Optional property for alternate points of view in boundaries layer with kind:* properties (like kind:iso). The following country and international organizations worldviews are supported: Argentina (ar), Bangladesh (bd), Brazil (br), China (cn), Egypt (eg), France (fr), Germany (de), Greece (gr), India (in), Indonesia (id), Israel (il), Italy (it), Japan (jp), Morocco (ma), Nepal (np), Netherlands (nl), Pakistan (pk), Palestine (ps), Poland (pl), Portugal (pt), Russia (ru), Saudi Arabia (sa), South Korea (ko), Spain (es), Sweden (se), Taiwan (tw), Turkey (tr), United Kingdom (gb), Ukraine (ua), United States (us), Vietnam (vn), ISO (iso)",
3232
"min_zoom" : "Number. A suggested minimum zoom at which the features should become visible. Common value.",
3333
"sort_rank" : "Integer. Suggestion for which order to draw features (lower values are bottom, bigger values on top). Common value.",
3434
"collision_rank" : "Integer. Common property. Suggestion for which order labels should collide. Use as tie breaker with min_zoom.",
3535
"area" : "Number. Common value.",
3636
"admin_level" : "Common optional value, one of: 2, 4, 6, 8.",
37+
"disputed_by" : "String. Optional property for alternate points of view in boundaries layer with kind:* properties (like kind:iso). The following country and international organizations worldviews are supported: Argentina (ar), Bangladesh (bd), Brazil (br), China (cn), Egypt (eg), France (fr), Germany (de), Greece (gr), India (in), Indonesia (id), Israel (il), Italy (it), Japan (jp), Morocco (ma), Nepal (np), Netherlands (nl), Pakistan (pk), Palestine (ps), Poland (pl), Portugal (pt), Russia (ru), Saudi Arabia (sa), South Korea (ko), Spain (es), Sweden (se), Taiwan (tw), Turkey (tr), United Kingdom (gb), Ukraine (ua), United States (us), Vietnam (vn), ISO (iso)",
3738
"id:left" : "Integer. For the relation on the left side of the boundary line. Common optional value.",
3839
"id:right" : "Integer. For the relation on the right side of the boundary line. Common optional value.",
3940
"name:left" : "See name section above, other variants like `old_name` also supported. Common optional value.",
@@ -150,6 +151,7 @@
150151
"aeroway" : "String. Common optional value.",
151152
"attraction" : "String. Common optional value.",
152153
"cuisine" : "String. Common optional value.",
154+
"direction" : "generally only for viewpoint and other oriented features. Expressed as an integer in range of 0-359, where 0 is equal to north, using a clockwise rotation of the main direction.",
153155
"drives_on_left" : "Boolean. Common optional value.",
154156
"exit_to" : "String. Only for highway exits. Common optional value.",
155157
"ref" : "generally only for `gate` and `station_entrance` features. Optional value.",
@@ -244,6 +246,8 @@
244246
"ski" : "String. For ski pistes. Optional value.",
245247
"snowshoe" : "String. For ski pistes. Optional value.",
246248
"sport" : "String. Optional value.",
249+
"shield_text" : "String. Contains text to display on a shield. For example, I 90 would have a network of US:I and a shield_text of 90. For some roads, this can include non-numeric characters, for example the M1 motorway in the UK will have a shield_text of M1, rather than just 1. Whitepsace, punctuation, and prefixes are generally stripped. Common optional value.",
250+
"shield_text_length" : "String. The length of the shield_text field as a string. E.g. if shield_text is 12345, shield_text_length would be 5. Missing if shield_text is !(0 < length < 7) or field doesn't exist. Common optional value.",
247251
"state" : "String. Optional value.",
248252
"symbol" : "String. For ski pistes. Optional value.",
249253
"toll" : "Boolean. Optional value.",
@@ -289,14 +293,18 @@
289293
"fields" : {
290294
"name" : "String. Localized name variants are in properties like 'name:en'. Common value.",
291295
"kind" : "String. detailed below, per geometry type. Common value, one of: basin, bay, canal, dam, ditch, dock, drain, fjord, fountain, lake, ocean, playa, reef, river, riverbank, sea, strait, stream, swimming_pool, water.",
296+
"kind_detail" : "String. Common optional value, one of: basin, canal, ditch, drain, lake, river, and stream.",
292297
"source" : "String. Common value, one of: naturalearthdata.com, osmdata.openstreetmap.de, openstreetmap.org.",
293298
"min_zoom" : "Number. A suggested minimum zoom at which the features should become visible. Common value.",
294299
"boundary" : "Boolean. For line geometries only. Common value.",
295300
"sort_rank" : "Integer. Suggestion for which order to draw features (lower values are bottom, bigger values on top). Common value.",
296301
"collision_rank" : "Integer. Common property. Suggestion for which order labels should collide. Use as tie breaker with min_zoom.",
297302
"area" : "in square meters (spherical Mercator, no real-world), `polygon` features only. Common optional value.",
298303
"id" : "OpenStreetMap feature `osm_id`, when sourced from `openstreetmap.org`. Common optional value.",
299-
"is_tunnel" : "for `line` features only (`true` values only). Common optional value."
304+
"is_tunnel" : "Boolean (`true` values only), for `line` features only. Common optional value.",
305+
"alkaline" : "Boolean features only (`true` values only). Common optional value.",
306+
"intermittent" : "Boolean (`true` values only). Common optional value.",
307+
"reservoir" : "Boolean (`true` values only). Common optional value."
300308
},
301309
"maxzoom" : 16.0,
302310
"minzoom" : 0.0,

0 commit comments

Comments
 (0)