public void save(String file) throws IOException {
		SVGGraphics2D generator = new SVGGraphics2D(doc);
		File outfile = new File(file);
		if (!outfile.exists()) {
			outfile.createNewFile();
		}
		Writer out = new OutputStreamWriter(new FileOutputStream(outfile),
				"UTF-8");
		generator.stream(doc.getDocumentElement(), out);
		System.out.println("Map saved");
	}