mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
interior placement: always compute center of the longest segment
This commit is contained in:
parent
bf6b7d79bd
commit
efd554a04e
@ -520,10 +520,6 @@ bool interior_position(PathType & path, double & x, double & y)
|
||||
if (!label::centroid(path, x,y))
|
||||
return false;
|
||||
|
||||
// if we are not a polygon, or the default is within the polygon we are done
|
||||
if (hit_test(path,x,y,0.001))
|
||||
return true;
|
||||
|
||||
// otherwise we find a horizontal line across the polygon and then return the
|
||||
// center of the widest intersection between the polygon and the line.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user