PointSymbolizer serialization was missing 'opacity' and 'allow_overlap'
This commit is contained in:
parent
d1f1f6971b
commit
4df684c50e
2 changed files with 12 additions and 0 deletions
|
@ -15,6 +15,8 @@ For a complete change history, see the SVN log.
|
||||||
Mapnik 0.6.2 Release
|
Mapnik 0.6.2 Release
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
- XML: added missing serialization of PointSymbolizer 'opacity' and 'allow_overlap' attributes (r1358)
|
||||||
|
|
||||||
- PointDatasource: fixed problem with missing geometries (#402)
|
- PointDatasource: fixed problem with missing geometries (#402)
|
||||||
|
|
||||||
- PostGIS: Add a 'persist_connection' option (default true), that when false will release
|
- PostGIS: Add a 'persist_connection' option (default true), that when false will release
|
||||||
|
|
|
@ -54,6 +54,16 @@ namespace mapnik
|
||||||
ptree::value_type("PointSymbolizer", ptree()))->second;
|
ptree::value_type("PointSymbolizer", ptree()))->second;
|
||||||
|
|
||||||
add_image_attributes( sym_node, sym );
|
add_image_attributes( sym_node, sym );
|
||||||
|
|
||||||
|
point_symbolizer dfl;
|
||||||
|
if (sym.get_allow_overlap() != dfl.get_allow_overlap() || explicit_defaults_ )
|
||||||
|
{
|
||||||
|
set_attr( sym_node, "allow_overlap", sym.get_allow_overlap() );
|
||||||
|
}
|
||||||
|
if ( sym.get_opacity() != dfl.get_opacity() || explicit_defaults_ )
|
||||||
|
{
|
||||||
|
set_attr( sym_node, "opacity", sym.get_opacity() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void operator () ( const line_symbolizer & sym )
|
void operator () ( const line_symbolizer & sym )
|
||||||
|
|
Loading…
Reference in a new issue