mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
fix rendering text on tile's borders
This commit is contained in:
parent
39eab41ecd
commit
8fe19a7b45
@ -369,9 +369,7 @@ bool placement_finder::collision(const box2d<double> &box, const value_unicode_s
|
||||
margin = (text_props_->margin != 0 ? text_props_->margin : text_props_->minimum_distance) * scale_factor_;
|
||||
repeat_distance = text_props_->repeat_distance * scale_factor_;
|
||||
}
|
||||
return !detector_.extent().intersects(box)
|
||||
||
|
||||
(text_props_->avoid_edges && !extent_.contains(box))
|
||||
return (text_props_->avoid_edges && !extent_.contains(box))
|
||||
||
|
||||
(text_props_->minimum_padding > 0 &&
|
||||
!extent_.contains(box + (scale_factor_ * text_props_->minimum_padding)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user