#include "sym.h"
#include "map.h"
-#undef ROTATE
-
uns debug_dump_source, debug_dump_after_proj, debug_dump_after_scaling;
uns debug_dump_multipolygons, debug_dump_css, debug_dump_styling, debug_dump_symbols;
}
struct svg *svg = svg_open(map_svg_output);
-#ifndef ROTATE
- svg_set_attr_dimen(svg, "width", page_width);
- svg_set_attr_dimen(svg, "height", page_height);
-#else
- svg_set_attr_dimen(svg, "width", page_height);
- svg_set_attr_dimen(svg, "height", page_width);
-#endif
+ if (!map_rotate)
+ {
+ svg_set_attr_dimen(svg, "width", page_width);
+ svg_set_attr_dimen(svg, "height", page_height);
+ }
+ else
+ {
+ svg_set_attr_dimen(svg, "width", page_height);
+ svg_set_attr_dimen(svg, "height", page_width);
+ }
struct style_results r;
style_init(&r);
svg_push_element(svg, "g");
svg_set_attr_format(svg, "clip-path", "url(#boundary)");
-#ifdef ROTATE
- svg_set_attr_format(svg, "transform", "translate(%.6g,0) rotate(90)", page_height * svg->scale);
-#endif
+ if (map_rotate)
+ svg_set_attr_format(svg, "transform", "translate(%.6g,0) rotate(90)", page_height * svg->scale);
}
// FIXME: Replace by generic logo drawing facility
+#if 0
struct svg_icon *logo = svg_icon_load(svg, "../logo/kocka-s-okrajem.svg");
+#endif
sym_draw_all(svg);
// Draw logo
+#if 0
double logo_width = 36.12;
double logo_height = 36.12 / logo->width * logo->height;
struct svg_icon_request sir = {
.height = logo_height,
};
svg_icon_put(svg, &sir);
+#endif
draw_scale(svg);