{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/5241","repository_url":"https://api.github.com/repos/openlayers/ol3","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/5241/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/5241/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/5241/events","html_url":"https://github.com/openlayers/ol3/issues/5241","id":149113733,"number":5241,"title":"ol.geom.GeometryType should be exposed by the API (as the docs state)","user":{"login":"giohappy","id":571129,"avatar_url":"https://avatars.githubusercontent.com/u/571129?v=3","gravatar_id":"","url":"https://api.github.com/users/giohappy","html_url":"https://github.com/giohappy","followers_url":"https://api.github.com/users/giohappy/followers","following_url":"https://api.github.com/users/giohappy/following{/other_user}","gists_url":"https://api.github.com/users/giohappy/gists{/gist_id}","starred_url":"https://api.github.com/users/giohappy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giohappy/subscriptions","organizations_url":"https://api.github.com/users/giohappy/orgs","repos_url":"https://api.github.com/users/giohappy/repos","events_url":"https://api.github.com/users/giohappy/events{/privacy}","received_events_url":"https://api.github.com/users/giohappy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-18T10:41:26Z","updated_at":"2016-04-18T11:35:45Z","closed_at":null,"body":"As stated in #3671 ol.geom.GeometryType isn't exposed as API, but I don't understand the ratio. Why shouldn't we have access to the constants (as OL3 internal code do)? They're are en important foundation for API robustness, instead of using the strings directly.\r\nAlso [the docs](http://openlayers.org/en/v3.14.2/apidoc/ol.geom.html?stableonly=true#.GeometryType) state they're available in (stable) API "},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/211341029","html_url":"https://github.com/openlayers/ol3/issues/5241#issuecomment-211341029","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/5241","id":211341029,"user":{"login":"ahocevar","id":211514,"avatar_url":"https://avatars.githubusercontent.com/u/211514?v=3","gravatar_id":"","url":"https://api.github.com/users/ahocevar","html_url":"https://github.com/ahocevar","followers_url":"https://api.github.com/users/ahocevar/followers","following_url":"https://api.github.com/users/ahocevar/following{/other_user}","gists_url":"https://api.github.com/users/ahocevar/gists{/gist_id}","starred_url":"https://api.github.com/users/ahocevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahocevar/subscriptions","organizations_url":"https://api.github.com/users/ahocevar/orgs","repos_url":"https://api.github.com/users/ahocevar/repos","events_url":"https://api.github.com/users/ahocevar/events{/privacy}","received_events_url":"https://api.github.com/users/ahocevar/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T11:35:45Z","updated_at":"2016-04-18T11:35:45Z","body":"Looks like you misunderstood the docs. `ol.geom.GeometryType` is not a constant, but an enumeration. The docs list the allowed values."}}