pub fn svg_layer(
out: &mut String,
defs: &mut String,
layer: &Value,
layer_idx: usize,
placement: &Placement,
assets: &SymbolAssets,
w: usize,
h: usize,
prefix: &str,
text_mode: SvgText,
fonts: Option<&SvgFonts>,
)Expand description
Write one symbol layer as SVG in draw_layer’s order: icons, then text, each per tile with the shader’s halo passes. Glyphs and SDF icons are outlines traced from their SDFs at the shader’s thresholds, one path per quad (MapLibre blends each quad separately); other icons are embedded sprite images.