-
Notifications
You must be signed in to change notification settings - Fork 240
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
tangram-play, tangram-es mismatch as some tags are silently dropped in MVT format #1616
Comments
Hey @matkoniecz, A+ issue reporting! Short answer: Replace Long answer: The
What happened in this particular instance was that Tangram ES encountered a list tag for
@nvkelso Are there many feature tags with list values like this? It seems like a Bad Thing to provide tags in some formats that are absent in others, for the reasons I outlined above. |
@matteblair Thanks, it solved my problem! I will keep the issue open as it appears that discussion is not finished. |
Yes, there are a number of properties like this: roads layer lists:
Paired with some single props &/or booleans to make life easier:
pois layer lists: Each station has several (optional) lists of routes per transport type:
Paired with some booleans:
|
The lists are there because in GeoJSON and TopoJSON they are allowed structures, and Mapzen basemap styles we generally work around the problem by relying on the single props version &/or booleans. The exception to this is transit stations who's styling suffers with MVT versus it's original TopoJSON source. A design case we've also allowed for in the Tilezen tiles are so-called "multi-shields" where a single road has multiple designated routes passing thru it and each route should get a shield. This is optional for roads, but common for bus routes. Tangram doesn't currently support this case, but renderers like Mapnik do. The recommendation talking with Mapbox folks is to stringify complex JSON properties on writing to MVT format, and then expand those on read of the tile. It sounds like Tangram JS already supports GeoJSON and TopoJSON complex properties now for free, but Tangram ES would need to grow support for that. I've filed #1617 Both Tangram JS and ES would need to grow support for un-stringifying complex properties in MVT. I've filed #1618 for ES and tangrams/tangram#581 for JS. I'm closing this issue in favor of the other issues I've opened. |
@matkoniecz I'll also note your YAML can be reconfigured a bit to remove lines:
|
thanks to help in tangrams/tangram-es#1616
TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:
bug encountered using https://github.com/matkoniecz/StreetComplete/blob/minimized_for_bug_report/app/src/main/assets/my-style.yaml from Android app
will be relevant
RESULT:
hiking trail is green
EXPECTED RESULT:
hiking trail is red like expected in Tangram Play at https://mapzen.com/tangram/play/?#18.00000/49.27798/19.98151
ENVIRONMENT:
OTHER:
Any additional notes, comments, tips, tricks, gifs, suggestions, poetry, recipes, jokes
If you are able to record the log output from tangram-es, please attach it as a text file or share it using a site like https://hastebin.com/
Tangram play https://mapzen.com/tangram/play/?#18.00000/49.27798/19.98151
View in mobile:
The text was updated successfully, but these errors were encountered: