if ((height == -1) || (width == -1)) {
throw new IOException("Could not determine map dimensions");
}
SVGGeneratorContext context = setupContext();
SVGGraphics2D g = new SVGGraphics2D(context, true);
g.setSVGCanvasSize(new Dimension((int) width, (int) height));
// turn off/on anti aliasing