-
Notifications
You must be signed in to change notification settings - Fork 27
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
Explain concepts behind ordering #138
Comments
Thanks for this feedback – I'll use this thread to track the changes I make to address the issue, starting with: a371101 |
With some testing with lines coming from the same MVT layer and the same tangram order I found out that the top-most object is the is one which comes first in the MVT ordering, the reverse of expectations. E.g. normally in a roads layer you'd want "high value" roads to to the end in an ascending sort. This is reflected in the osm2pgsql z_order which puts motorways high so they will be at the end of a layer if that layer sorts by z_order. This is because conventional algorithms draw the first object in the layer first and later ones on top of it. Tangram requires the reverse of this. |
That’s correct, names sort A to Z within the same order (or default order On Tue, Aug 23, 2016 at 2:48 PM, Paul Norman [email protected]
|
Most people with a web background will be used to the ordering model of layers then an order within the layers. Tangram's is substantially different. There is relatively little documentation on Tangram's ordering or how it differs.
The order mapping is documented as
Depth collisions are undefined, as is depth.
order is a property of draw groups which then belong to a layer or sublayer. Layers are part of the layers element which is a YAML mapping, so layers have no YAML order.
When rendering from MVT there are two additional orders: layer order within the tile and feature order within a layer. How do these come into play?
I would expect the overall order to be draw order, layer order, then feature order but I can find nothing documenting this.
The text was updated successfully, but these errors were encountered: