mapnik-org/mapnik — Issue #518: Serializing map buffer_size?
Author: artemp
Created: 2011-10-11 08:00:00+00:00
State: open
Labels: Core_Library

should we?

{{{
#!diff
Index: src/save_map.cpp
===================================================================
--- src/save_map.cpp (revision 1650)
+++ src/save_map.cpp (working copy)
@@ -548,7 +548,13 @@
set_attr( map_node, "bgcolor", * c );
}

+ unsigned buffer_size = map.buffer_size();
+ if (buffer_size || explicit_defaults)
{
+ set_attr( map_node, "buffer_size", buffer_size );
+ }
+
+ {
Map::const_fontset_iterator it = map.fontsets().begin();
Map::const_fontset_iterator end = map.fontsets().end();
for (; it != end; ++it)

}}}