Skip to main content

render_stack

Function render_stack 

Source
pub fn render_stack(
    requests: Vec<RenderRequest>,
) -> Result<RenderResult, BasemapError>
Expand description

Render several styles over the same view and composite them bottom to top (straight-alpha source-over), e.g. a basemap published as separate services. All requests must share bbox, size and pixel ratio.

layers, labels and features apply to the stack as one basemap: a style they leave nothing of (the hillshade under labels = Only, the labels over features = ["terrain"]) is skipped, and it is an error only when they leave nothing of the whole stack. A name warns only when it matches nothing in any style of the stack.