{"action":"created","issue":{"url":"https://api.github.com/repos/SebastianM/angular2-google-maps/issues/789","repository_url":"https://api.github.com/repos/SebastianM/angular2-google-maps","labels_url":"https://api.github.com/repos/SebastianM/angular2-google-maps/issues/789/labels{/name}","comments_url":"https://api.github.com/repos/SebastianM/angular2-google-maps/issues/789/comments","events_url":"https://api.github.com/repos/SebastianM/angular2-google-maps/issues/789/events","html_url":"https://github.com/SebastianM/angular2-google-maps/issues/789","id":195712573,"number":789,"title":"How to recenter map based on marker position?","user":{"login":"amiller29au","id":5146546,"avatar_url":"https://avatars.githubusercontent.com/u/5146546?v=3","gravatar_id":"","url":"https://api.github.com/users/amiller29au","html_url":"https://github.com/amiller29au","followers_url":"https://api.github.com/users/amiller29au/followers","following_url":"https://api.github.com/users/amiller29au/following{/other_user}","gists_url":"https://api.github.com/users/amiller29au/gists{/gist_id}","starred_url":"https://api.github.com/users/amiller29au/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amiller29au/subscriptions","organizations_url":"https://api.github.com/users/amiller29au/orgs","repos_url":"https://api.github.com/users/amiller29au/repos","events_url":"https://api.github.com/users/amiller29au/events{/privacy}","received_events_url":"https://api.github.com/users/amiller29au/received_events","type":"User","site_admin":false},"labels":[{"id":311948447,"url":"https://api.github.com/repos/SebastianM/angular2-google-maps/labels/comp:%20SebmGoogleMap","name":"comp: SebmGoogleMap","color":"DEDEDE","default":false},{"id":319841503,"url":"https://api.github.com/repos/SebastianM/angular2-google-maps/labels/type:%20feature-request","name":"type: feature-request","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-15T04:07:55Z","updated_at":"2016-12-15T18:34:32Z","closed_at":null,"body":"** Question **\r\n\r\nI have implemented a fullscreen option for the map but when I go to the fullscreen and back I call triggerResize() on the map to update the bounds for the map.\r\n\r\nHowever, when going to fullscreen or returning to normal size, the marker is no longer centered on the screen.\r\n\r\nHow could I trigger the map control to recenter for the given marker position.\r\n\r\n\r\n**angular2 & angular2-google-maps version**\r\nAngular: 2.12\r\nAngular2-google-maps: 0.16.0\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SebastianM/angular2-google-maps/issues/comments/267404908","html_url":"https://github.com/SebastianM/angular2-google-maps/issues/789#issuecomment-267404908","issue_url":"https://api.github.com/repos/SebastianM/angular2-google-maps/issues/789","id":267404908,"user":{"login":"SebastianM","id":275268,"avatar_url":"https://avatars.githubusercontent.com/u/275268?v=3","gravatar_id":"","url":"https://api.github.com/users/SebastianM","html_url":"https://github.com/SebastianM","followers_url":"https://api.github.com/users/SebastianM/followers","following_url":"https://api.github.com/users/SebastianM/following{/other_user}","gists_url":"https://api.github.com/users/SebastianM/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianM/subscriptions","organizations_url":"https://api.github.com/users/SebastianM/orgs","repos_url":"https://api.github.com/users/SebastianM/repos","events_url":"https://api.github.com/users/SebastianM/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianM/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T18:34:32Z","updated_at":"2016-12-15T18:34:32Z","body":"This is not supported right now. Current workaround could be to change the latitude/longitude for 1 millisecond and then change back to the original position. That should trigger the centering.\r\n\r\nI think it's a good idea to add it to the triggerResize method.\r\n```\r\ntriggerResize(recenter = true)\r\n````\r\n\r\nThis would be a breaking change but most people probably want that behavior."}}
{"actor":{"display_login":"SebastianM"}}