Skip to main content

render_svg

Function render_svg 

Source
pub fn render_svg(
    style: &Value,
    sources: &SourceTiles,
    assets: &SymbolAssets,
    bbox: [f64; 4],
    width: u32,
    height: u32,
    id_prefix: &str,
    text_mode: SvgText,
    fonts: Option<&SvgFonts>,
) -> Result<SvgParts, String>
Expand description

Render tiles with style as vector SVG: the same view, tile clipping, evaluated style values and label placement as render, written as paths instead of pixels. Labels are glyph outlines traced from the style’s SDF glyphs at the shader’s edge threshold.