mapbox / vt-pbf

Serialize Mapbox Vector Tiles to binary protobufs in javascript.
Other
186 stars 38 forks source link

Flatten nested properties #5

Closed hannesj closed 8 years ago

hannesj commented 8 years ago

Currently if you have an object as a property (e.g. from a GeopJSON-file), it will be stored as [object Object] in the protobuf. It should probably be flattened, e.g. using the dot-notation so that {"name": {"en": "Place"}} would become {"name.en": "Place"}, before storing it.

anandthakker commented 8 years ago

Looks like Mapnik stringifies such values (reference

hannesj commented 8 years ago

That would probably be a good solution in order to be compatible. Did a PR for this (#6)