Skip to content

Explain concepts behind ordering #138

Open
@pnorman

Description

@pnorman

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

Applies to all draw styles. Sets the drawing order of the draw style, to be used in case of depth collisions. Higher-ordered layers will be drawn over lower-ordered layers. Child layers override parent layers.

Depth collisions are undefined, as is depth.

Higher-ordered layers will be drawn over lower-ordered layers.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions