{"action":"opened","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 \"around\" option","user":{"login":"lucaswoj","id":281306,"avatar_url":"https://avatars.githubusercontent.com/u/281306?v=3","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":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-14T00:43:11Z","updated_at":"2017-02-14T00:43:11Z","closed_at":null,"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? "}}
{"actor":{"display_login":"lucaswoj"}}