Skip to content
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

Support encoding and decoding lists #64

Open
zerebubuth opened this issue Aug 12, 2016 · 2 comments
Open

Support encoding and decoding lists #64

zerebubuth opened this issue Aug 12, 2016 · 2 comments

Comments

@zerebubuth
Copy link
Member

MVT doesn't have a native list value type, but we can fake it by encoding lists to something like "list:" + value.to_json, and parse it from JSON when the prefix is list: when decoding. This runs the risk of decoding things which start with list: which aren't actually lists, but I think there are few enough of them?

@nvkelso
Copy link
Member

nvkelso commented Aug 16, 2016

Apparently Mapbox encodes raw JSON for nested properties (e.g.: for their file uploader > tiles tool).

@nyurik
Copy link

nyurik commented Sep 26, 2016

I just made an implementation proposal for objects and lists at mapbox/vector-tile-spec#75 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants