From 967589442cc1d10a3052df729ca1def7e91d0233 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 31 Jul 2012 11:23:53 -0700 Subject: [PATCH] serialize transform for points and sheild --- src/save_map.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/save_map.cpp b/src/save_map.cpp index f572c8fc0..52d0482ec 100644 --- a/src/save_map.cpp +++ b/src/save_map.cpp @@ -78,6 +78,11 @@ public: { set_attr( sym_node, "placement", sym.get_point_placement() ); } + if (sym.get_image_transform()) + { + std::string tr_str = sym.get_image_transform_string(); + set_attr( sym_node, "transform", tr_str ); + } serialize_symbolizer_base(sym_node, sym); } @@ -218,6 +223,11 @@ public: { set_attr(sym_node, "shield-dy", displacement.second); } + if (sym.get_image_transform()) + { + std::string tr_str = sym.get_image_transform_string(); + set_attr( sym_node, "transform", tr_str ); + } serialize_symbolizer_base(sym_node, sym); } @@ -249,7 +259,6 @@ public: { set_attr( sym_node, "height", mapnik::to_expression_string(*sym.height()) ); } - serialize_symbolizer_base(sym_node, sym); }