openlayers/ol3 — pull request #878 by ahocevar (2013-07-20 08:35:23+00:00)
Title: Better label placement for polygons

Using the y-coordinate of the polygon's bounding box, this
simple algorithm intersects the polygon with the horizontal
center line of its bounding box. The x-coordinate of the label
point is the center of the longest segment of this intersection
that is inside the polygon.