### Question:
SVGRenderer extends BaseRenderer implements Labeller { @Override public void render(Label label) { if (debugLabels()) { Envelope box = label.bounds(); xml.emptyElement("rect", "fill", "none", "stroke", "black", "x", box.getMinX(), "y", box.getMinY() - box.getHeight(), "width", box.getWidth(), "height", box.getHeight()); } Coordinate a = label.anchor(); Text text = label.get(Text.class, Text.class); Font font = text.font; xml.element("text", label.getText(), "x", a.x, "y", a.y, "font-family", font.family, "font-size", font.size, "text-anchor", text.anchor, "direction", text.direction); } SVGRenderer(); SVGRenderer indent(int size); @Override boolean layout(Label label, LabelIndex labels); @Override void render(Label label); @Override void close();  }### Answer:
@Test public void lines() throws IOException { Style s = Style.build().select("*") .set(LINE_DASHARRAY, "5 3 2 5 3 2") .set(LINE_WIDTH, 2) .style(); View v = Map.build().layer(TestData.line()).style(s).view(); r.init(v, null); r.render(output); }
@Test public void polygons() throws IOException { Style s = Style.build().select("*") .set(POLYGON_FILL, RGB.gray) .style(); View v = Map.build().layer(TestData.states()).style(s).view(); r.init(v, null); r.render(output); }