mapbox / mapbox/vector-tile-spec

How are property values that are objects/arrays encoded in vector tiles?

Open
#75 39 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.0 Specification
Dominant language
No language data
Stars
1k
Forks
213
PR merge metrics
No merged PRs in 30d

Description

It would be great to add an example of encoding an `Array` or `Object` from the original GeoJSON to the PBF value (from the [`4.5` example](https://github.com/mapbox/vector-tile-spec/tree/master/2.1#45-example)) to make it clear how the v2 spec should encode these values. Are the values encoded as string values and required to be parsed by the user?

i.e. for an array value:

```
values: {
string_value: "[\"one\",\"two\",3]"
}
```

Related to https://github.com/mapbox/vector-tiles/issues/12

cc @flippmoke @danswick

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked 4.5 example in the vector-tile-spec repository and compare it with the question about Array and Object values. Then review the related vector-tiles issue #12 for prior discussion. Done means the v2 specification clearly documents how these values are encoded, including an example if that is the agreed resolution.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.