1110da37e1a080bbfdd60bd2da9d3bd380dfdf98
Previously, ol.geom.Polygon was a transitive dependency of ol.proj (since ol.proj requires ol.sphere.NORMAL, and all spheres were capable of generating circular polygons). Instead, ol.proj should be lower-level. Since it deals only with coordinate arrays, it shouldn't depend on all of the geometry code. By adding a static `circular` function to `ol.geom.Polygon`, the dependency tree makes more sense. If you want to create a polygon that approximates a circle on a sphere, you require `ol.geom.Polygon` and `ol.Sphere` (or one of the constants). This makes room for geometries to have a `transform` method that takes projection-like arguments (meaning that `ol.geom.Geometry` will require `ol.proj`).
OpenLayers 3
Welcome to OpenLayers 3!
Check out the hosted examples, the workshop or poke around the evolving API docs.
Please don't ask questions in the github issue tracker but use the mailing list instead.
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%
