11ef2cb7d15952552a451c7289ea170a3bfe8172
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.
OpenLayers 3
Welcome to OpenLayers 3!
Check out the hosted examples or poke around the evolving API docs.
Please see our guide on contributing if you're interested in getting involved.
Description
Languages
JavaScript
99%
CSS
0.6%
Handlebars
0.3%
Shell
0.1%
