diff --git a/src/svg/svg_parser.cpp b/src/svg/svg_parser.cpp index 3f30ae366..142ab59da 100644 --- a/src/svg/svg_parser.cpp +++ b/src/svg/svg_parser.cpp @@ -58,6 +58,25 @@ namespace mapnik { namespace svg { +namespace { +void print_css(mapnik::css_data & data) +{ + for (auto const& kv : data) + { + std::cerr << std::get<0>(kv) << " {" << std::endl; + for (auto const& def : std::get<1>(kv)) + { + std::cerr << " " << std::get<0>(def) << ":"; + mapnik::util::apply_visitor([](auto const& val){ + std::cerr << val << std::endl; + }, std::get<1>(def)); + } + std::cerr << "}" << std::endl; + } +} + +} + using util::name_to_int; using util::operator"" _case; @@ -445,14 +464,25 @@ void traverse_tree(svg_parser & parser, rapidxml::xml_node const* node) if ("style"_case == name) { //