-
Notifications
You must be signed in to change notification settings - Fork 290
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
Add support for complex properties from MVT formats #581
Comments
I have concerns about encoding JSON values into MVT string properties. Mainly, the question I have is: How does the engine know which string values should be interpreted as JSON? Possible answers:
|
There are other conceptual solutions to this as well, such as interpreting all feature properties from all formats as JSON values, but that involves more dramatic refactoring. |
I agree that knowing which fields to apply extra parsing to is problematic. One thought I had is a variation of your options above, which is that these fields would have to be specified as part of the Tangram data source definition in |
Ah oops, I meant to post my replies to tangrams/tangram-es#1618 - lots of similar issues in my tabs haha. I suppose the concern still mostly applies here as well. |
Support for these properties was added to Tangram JS in https://github.com/tangrams/tangram/releases/tag/v0.19.0. The user must whitelist the MVT properties to be parsed as JSON, or opt into all being parsed and incur a performance hit. No parsing is done by default. |
Huzzah!
…On Wed, Dec 4, 2019 at 12:06 Brett Camper ***@***.***> wrote:
Closed #581 <#581>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#581?email_source=notifications&email_token=AAGQIO2QEJNJ2KDPQYYT2ADQXAETFA5CNFSM4DXAFUS2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOVIYTUDI#event-2855352845>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGQIO6TAN4YODCNV2U5RCTQXAETFANCNFSM4DXAFUSQ>
.
|
Tangram JS sister issue to tangrams/tangram-es#1618. Related to the root cause of tangrams/tangram-es#1616.
While GeoJSON and TopoJSON support complex property values (nested properties, lists, etc) those are currently dropped in Tilezen MVT format on the server. We plan to add support for stringifying those property values instead in tilezen/mapbox-vector-tile#94.
This Tangram JS issue covers turning the stringified values back into regular complex property as the tile is parsed.
The text was updated successfully, but these errors were encountered: