Fix PointSymbolizer collision bounding boxes.
This commit is contained in:
parent
e6b7525d34
commit
f3cf17728b
1 changed files with 1 additions and 0 deletions
|
@ -485,6 +485,7 @@ bool placement_finder::add_marker(glyph_positions_ptr glyphs, const pixel_positi
|
|||
pixel_position real_pos = (marker_unlocked_ ? pos : glyphs->get_base_point()) + marker_displacement_;
|
||||
box2d<double> bbox = marker_box_;
|
||||
bbox.move(real_pos.x, real_pos.y);
|
||||
bbox *= scale_factor_;
|
||||
glyphs->set_marker(marker_, real_pos);
|
||||
if (collision(bbox)) return false;
|
||||
detector_.insert(bbox);
|
||||
|
|
Loading…
Reference in a new issue