{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/3285","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/3285/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/3285/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/3285/events","html_url":"https://github.com/openlayers/ol3/issues/3285","id":59070291,"number":3285,"title":"Documentation for ol.proj.Projection.prototype.getPointResolution","user":{"login":"bill-chadwick","id":10521516,"avatar_url":"https://avatars.githubusercontent.com/u/10521516?v=3","gravatar_id":"","url":"https://api.github.com/users/bill-chadwick","html_url":"https://github.com/bill-chadwick","followers_url":"https://api.github.com/users/bill-chadwick/followers","following_url":"https://api.github.com/users/bill-chadwick/following{/other_user}","gists_url":"https://api.github.com/users/bill-chadwick/gists{/gist_id}","starred_url":"https://api.github.com/users/bill-chadwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bill-chadwick/subscriptions","organizations_url":"https://api.github.com/users/bill-chadwick/orgs","repos_url":"https://api.github.com/users/bill-chadwick/repos","events_url":"https://api.github.com/users/bill-chadwick/events{/privacy}","received_events_url":"https://api.github.com/users/bill-chadwick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-02-26T13:13:30Z","updated_at":"2015-03-17T19:46:28Z","closed_at":null,"body":"A small thing ...\r\n\r\nThe current documentation for ol.proj.Projection.prototype.getPointResolution reads\r\n\r\n/**\r\n* Get the resolution of the point in degrees. For projections with degrees as\r\n* the unit this will simply return the provided resolution. For other\r\n* projections the point resolution is estimated by transforming the center\r\n* pixel to EPSG:4326, measuring its width and height on the normal sphere,\r\n* and taking the average of the width and height.\r\n* @param {number} resolution Resolution.\r\n* @param {ol.Coordinate} point Point.\r\n* @return {number} Point resolution.\r\n*/\r\n\r\nThe function description is a bit wrong. It should be something like\r\n\r\n/**\r\n* Get the resolution of the point. For projections with degrees as\r\n* the unit this will simply return the provided resolution. For other\r\n* projections the point resolution in projection units is estimated \r\n* by transforming the center pixel to EPSG:4326, \r\n* measuring its width and height on the normal sphere,\r\n* and taking the average of the width and height.\r\n* @param {number} resolution Resolution.\r\n* @param {ol.Coordinate} point Point.\r\n* @return {number} Point resolution.\r\n*/\r\n\r\nThe function is useful for determining the nominal resolution of a point on the Web Mercator projection. With that projection, resolution in metres per pixel changes with latitude. The function is used, for example, in calculating the length of the bar in the ScaleLine control.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/82565352","html_url":"https://github.com/openlayers/ol3/issues/3285#issuecomment-82565352","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/3285","id":82565352,"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":"2015-03-17T19:46:28Z","updated_at":"2015-03-17T19:46:28Z","body":"@bill-chadwick #3362 is what I had in mind."}}