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;
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;
-#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);
+ }
svg_push_element(svg, "g");
svg_set_attr_format(svg, "clip-path", "url(#boundary)");
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);