{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1970","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1970/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1970/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1970/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/1970","id":128098484,"number":1970,"title":"Add a way to set initial map bounds","user":{"login":"peckjon","id":5299412,"avatar_url":"https://avatars.githubusercontent.com/u/5299412?v=3","gravatar_id":"","url":"https://api.github.com/users/peckjon","html_url":"https://github.com/peckjon","followers_url":"https://api.github.com/users/peckjon/followers","following_url":"https://api.github.com/users/peckjon/following{/other_user}","gists_url":"https://api.github.com/users/peckjon/gists{/gist_id}","starred_url":"https://api.github.com/users/peckjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peckjon/subscriptions","organizations_url":"https://api.github.com/users/peckjon/orgs","repos_url":"https://api.github.com/users/peckjon/repos","events_url":"https://api.github.com/users/peckjon/events{/privacy}","received_events_url":"https://api.github.com/users/peckjon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/api","name":"api","color":"00ff00"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-22T07:12:05Z","updated_at":"2016-01-26T21:59:10Z","closed_at":null,"body":"Is there no way to set the initial bounds of a Map?\r\n\r\n[options.maxBounds](https://www.mapbox.com/mapbox-gl-js/api/#Map) allows one to set the initial bounding box, but also permanently constrains the view to this box.\r\n\r\nA combination of .center and .zoom would effectively allow one to set initial bounds, but also requires some computation, and is inexact.\r\n\r\nIs there an easy way to set an initial options.bounds ?"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/175250971","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/1970#issuecomment-175250971","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1970","id":175250971,"user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T21:59:10Z","updated_at":"2016-01-26T21:59:10Z","body":"Unanimated `Map#fitBounds` is #1473. This issue is about bounds-based map initialization."}}