{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4268","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4268/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4268/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4268/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/4268","id":207384050,"number":4268,"title":"Add a global \"padding\" option","user":{"login":"lucaswoj","id":281306,"avatar_url":"https://avatars1.githubusercontent.com/u/281306?v=4","gravatar_id":"","url":"https://api.github.com/users/lucaswoj","html_url":"https://github.com/lucaswoj","followers_url":"https://api.github.com/users/lucaswoj/followers","following_url":"https://api.github.com/users/lucaswoj/following{/other_user}","gists_url":"https://api.github.com/users/lucaswoj/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswoj/subscriptions","organizations_url":"https://api.github.com/users/lucaswoj/orgs","repos_url":"https://api.github.com/users/lucaswoj/repos","events_url":"https://api.github.com/users/lucaswoj/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswoj/received_events","type":"User","site_admin":false},"labels":[{"id":415910650,"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/GL%20native%20%E2%86%92%20GL%20JS","name":"GL native → GL JS","color":"fbca04","default":false},{"id":31015438,"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/feature","name":"feature","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-02-14T00:43:11Z","updated_at":"2018-02-20T00:47:45Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We allow users to pass an [`around` option](https://www.mapbox.com/mapbox-gl-js/api/#CameraOptions) to some camera methods. \r\n\r\nThis ticket proposes a `around` option be added to `Map` as a constructor option, getter, and setter. \r\n\r\nThis option would specify a default value for `around` on all camera mutations so that\r\n\r\n - it becomes possible to specify `around` for implicit camera mutation, such as those triggered by use of the `NavigationControl`\r\n - it becomes more ergonomic to use the same `around` value for all camera mutations\r\n\r\n# Open Questions\r\n\r\n - Does `around` make sense semantically in this case? Many users will be using this feature because they have a translucent element over the map. In that use case, `padding` is a more intuitive option.\r\n - Might users be confused about the difference between `around` and `center`? Can we find a naming convention that eliminates that confusion?\r\n - Are there any other parameters that should have global defaults like this? "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/366836415","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/4268#issuecomment-366836415","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/4268","id":366836415,"user":{"login":"59023g","id":5235538,"avatar_url":"https://avatars1.githubusercontent.com/u/5235538?v=4","gravatar_id":"","url":"https://api.github.com/users/59023g","html_url":"https://github.com/59023g","followers_url":"https://api.github.com/users/59023g/followers","following_url":"https://api.github.com/users/59023g/following{/other_user}","gists_url":"https://api.github.com/users/59023g/gists{/gist_id}","starred_url":"https://api.github.com/users/59023g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/59023g/subscriptions","organizations_url":"https://api.github.com/users/59023g/orgs","repos_url":"https://api.github.com/users/59023g/repos","events_url":"https://api.github.com/users/59023g/events{/privacy}","received_events_url":"https://api.github.com/users/59023g/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T00:47:45Z","updated_at":"2018-02-20T00:47:45Z","author_association":"NONE","body":"Hey, Updates on this?"}}
{"actor":{"display_login":"59023g"}}