set clipping off by default for markers, shields, and text #1608

Closed
wants to merge 2 commits into from
View
10 src/markers_symbolizer.cpp
@@ -59,7 +59,10 @@ markers_symbolizer::markers_symbolizer()
marker_p_(MARKER_POINT_PLACEMENT),
// TODO: consider defaulting to MARKER_WHOLE_MULTI,
// for backward compatibility with 2.0.0
- marker_mp_(MARKER_EACH_MULTI) { }
+ marker_mp_(MARKER_EACH_MULTI)
+ {
+ this->set_clip(false);
+ }
markers_symbolizer::markers_symbolizer(path_expression_ptr const& filename)
: symbolizer_with_image(filename),
@@ -73,7 +76,10 @@ markers_symbolizer::markers_symbolizer(path_expression_ptr const& filename)
marker_p_(MARKER_POINT_PLACEMENT),
// TODO: consider defaulting to MARKER_WHOLE_MULTI,
// for backward compatibility with 2.0.0
- marker_mp_(MARKER_EACH_MULTI) { }
+ marker_mp_(MARKER_EACH_MULTI)
+ {
+ this->set_clip(false);
+ }
markers_symbolizer::markers_symbolizer(markers_symbolizer const& rhs)
: symbolizer_with_image(rhs),
View
3 src/shield_symbolizer.cpp
@@ -37,6 +37,7 @@ shield_symbolizer::shield_symbolizer(text_placements_ptr placements)
unlock_image_(false),
shield_displacement_(0,0)
{
+ this->set_clip(false);
}
shield_symbolizer::shield_symbolizer(
@@ -50,6 +51,7 @@ shield_symbolizer::shield_symbolizer(
unlock_image_(false),
shield_displacement_(0, 0)
{
+ this->set_clip(false);
}
shield_symbolizer::shield_symbolizer(
@@ -62,6 +64,7 @@ shield_symbolizer::shield_symbolizer(
unlock_image_(false),
shield_displacement_(0, 0)
{
+ this->set_clip(false);
}
void shield_symbolizer::set_unlock_image(bool unlock_image)
View
4 src/text_symbolizer.cpp
@@ -104,7 +104,7 @@ text_symbolizer::text_symbolizer(text_placements_ptr placements)
placement_options_(placements),
halo_rasterizer_(HALO_RASTERIZER_FULL)
{
-
+ this->set_clip(false);
}
text_symbolizer::text_symbolizer(expression_ptr name, std::string const& face_name,
@@ -118,6 +118,7 @@ text_symbolizer::text_symbolizer(expression_ptr name, std::string const& face_na
set_face_name(face_name);
set_text_size(size);
set_fill(fill);
+ this->set_clip(false);
}
text_symbolizer::text_symbolizer(expression_ptr name, float size, color const& fill,
@@ -129,6 +130,7 @@ text_symbolizer::text_symbolizer(expression_ptr name, float size, color const& f
set_name(name);
set_text_size(size);
set_fill(fill);
+ this->set_clip(false);
}
text_symbolizer::text_symbolizer(text_symbolizer const& rhs)