{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/4573","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/4573/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/4573/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/4573/events","html_url":"https://github.com/openlayers/ol3/issues/4573","id":122569897,"number":4573,"title":"view.getResolutionForExtent only works in OL_Debug Errors in ol.js","user":{"login":"flipper44","id":16003063,"avatar_url":"https://avatars.githubusercontent.com/u/16003063?v=3","gravatar_id":"","url":"https://api.github.com/users/flipper44","html_url":"https://github.com/flipper44","followers_url":"https://api.github.com/users/flipper44/followers","following_url":"https://api.github.com/users/flipper44/following{/other_user}","gists_url":"https://api.github.com/users/flipper44/gists{/gist_id}","starred_url":"https://api.github.com/users/flipper44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flipper44/subscriptions","organizations_url":"https://api.github.com/users/flipper44/orgs","repos_url":"https://api.github.com/users/flipper44/repos","events_url":"https://api.github.com/users/flipper44/events{/privacy}","received_events_url":"https://api.github.com/users/flipper44/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-16T18:15:06Z","updated_at":"2015-12-28T08:29:40Z","closed_at":null,"body":"Enough said in the title"},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/167509927","html_url":"https://github.com/openlayers/ol3/issues/4573#issuecomment-167509927","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/4573","id":167509927,"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-12-28T08:29:40Z","updated_at":"2015-12-28T08:29:40Z","body":"> It seems like a quite handy function when one knows the initial extent and map size.\r\n\r\n@flipper44 Have you looked at [ol.View#fit()](http://openlayers.org/en/v3.12.1/apidoc/ol.View.html#fit)?"}}