{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1170","labels_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1170/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1170/comments","events_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1170/events","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1170","id":58183649,"number":1170,"title":"`ui-gmap-markers` `fit=\"true\"` attribute does not updates map center correctly","user":{"login":"blckshrk","id":2818075,"avatar_url":"https://avatars.githubusercontent.com/u/2818075?v=3","gravatar_id":"","url":"https://api.github.com/users/blckshrk","html_url":"https://github.com/blckshrk","followers_url":"https://api.github.com/users/blckshrk/followers","following_url":"https://api.github.com/users/blckshrk/following{/other_user}","gists_url":"https://api.github.com/users/blckshrk/gists{/gist_id}","starred_url":"https://api.github.com/users/blckshrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blckshrk/subscriptions","organizations_url":"https://api.github.com/users/blckshrk/orgs","repos_url":"https://api.github.com/users/blckshrk/repos","events_url":"https://api.github.com/users/blckshrk/events{/privacy}","received_events_url":"https://api.github.com/users/blckshrk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/labels/investigating","name":"investigating","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"nmccready","id":583593,"avatar_url":"https://avatars.githubusercontent.com/u/583593?v=3","gravatar_id":"","url":"https://api.github.com/users/nmccready","html_url":"https://github.com/nmccready","followers_url":"https://api.github.com/users/nmccready/followers","following_url":"https://api.github.com/users/nmccready/following{/other_user}","gists_url":"https://api.github.com/users/nmccready/gists{/gist_id}","starred_url":"https://api.github.com/users/nmccready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmccready/subscriptions","organizations_url":"https://api.github.com/users/nmccready/orgs","repos_url":"https://api.github.com/users/nmccready/repos","events_url":"https://api.github.com/users/nmccready/events{/privacy}","received_events_url":"https://api.github.com/users/nmccready/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/milestones/24","html_url":"https://github.com/angular-ui/angular-google-maps/milestones/2.0.14","labels_url":"https://api.github.com/repos/angular-ui/angular-google-maps/milestones/24/labels","id":997117,"number":24,"title":"2.0.14","description":"Few bugs as possible as I am done with the 2.0.X branch.","creator":{"login":"nmccready","id":583593,"avatar_url":"https://avatars.githubusercontent.com/u/583593?v=3","gravatar_id":"","url":"https://api.github.com/users/nmccready","html_url":"https://github.com/nmccready","followers_url":"https://api.github.com/users/nmccready/followers","following_url":"https://api.github.com/users/nmccready/following{/other_user}","gists_url":"https://api.github.com/users/nmccready/gists{/gist_id}","starred_url":"https://api.github.com/users/nmccready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmccready/subscriptions","organizations_url":"https://api.github.com/users/nmccready/orgs","repos_url":"https://api.github.com/users/nmccready/repos","events_url":"https://api.github.com/users/nmccready/events{/privacy}","received_events_url":"https://api.github.com/users/nmccready/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":14,"state":"closed","created_at":"2015-02-26T15:11:55Z","updated_at":"2015-03-10T01:24:27Z","due_on":"2015-03-15T04:00:00Z","closed_at":"2015-03-10T01:24:27Z"},"comments":17,"created_at":"2015-02-19T09:18:02Z","updated_at":"2015-06-01T18:22:45Z","closed_at":"2015-03-09T00:02:00Z","body":"Hi,\r\n\r\nI get a bug on the master branch with `fit=\"true\"` on `ui-gmap-markers`. At the map loading, the zoom is correctly update to fit bounds, but the center of the map isn't. It keeps the default set center.\r\n\r\nI have to do a `fitBounds()` after a delay to override the center values.\r\n```js\r\n$timeout(function() {\r\n    map.fitBounds(bounds);\r\n}, 100);  \r\n```\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/comments/107662877","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1170#issuecomment-107662877","issue_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1170","id":107662877,"user":{"login":"th3m4ri0","id":2685884,"avatar_url":"https://avatars.githubusercontent.com/u/2685884?v=3","gravatar_id":"","url":"https://api.github.com/users/th3m4ri0","html_url":"https://github.com/th3m4ri0","followers_url":"https://api.github.com/users/th3m4ri0/followers","following_url":"https://api.github.com/users/th3m4ri0/following{/other_user}","gists_url":"https://api.github.com/users/th3m4ri0/gists{/gist_id}","starred_url":"https://api.github.com/users/th3m4ri0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th3m4ri0/subscriptions","organizations_url":"https://api.github.com/users/th3m4ri0/orgs","repos_url":"https://api.github.com/users/th3m4ri0/repos","events_url":"https://api.github.com/users/th3m4ri0/events{/privacy}","received_events_url":"https://api.github.com/users/th3m4ri0/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T18:22:45Z","updated_at":"2015-06-01T18:22:45Z","body":"Thanks @antoine64, the uiGmapIsReady promise part is exactly what I needed."}}