{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1252","repository_url":"https://api.github.com/repos/angular-ui/angular-google-maps","labels_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1252/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1252/comments","events_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1252/events","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1252","id":65196456,"number":1252,"title":"uiGmapIsReady resolves only the first time for the second map on page","user":{"login":"megatrond","id":1482164,"avatar_url":"https://avatars.githubusercontent.com/u/1482164?v=3","gravatar_id":"","url":"https://api.github.com/users/megatrond","html_url":"https://github.com/megatrond","followers_url":"https://api.github.com/users/megatrond/followers","following_url":"https://api.github.com/users/megatrond/following{/other_user}","gists_url":"https://api.github.com/users/megatrond/gists{/gist_id}","starred_url":"https://api.github.com/users/megatrond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megatrond/subscriptions","organizations_url":"https://api.github.com/users/megatrond/orgs","repos_url":"https://api.github.com/users/megatrond/repos","events_url":"https://api.github.com/users/megatrond/events{/privacy}","received_events_url":"https://api.github.com/users/megatrond/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-30T12:03:45Z","updated_at":"2016-05-24T13:36:24Z","closed_at":"2015-03-30T19:51:27Z","body":"Minimal example here: http://jsfiddle.net/dyfe7s8t/1/\r\n\r\nBasically, I open a map in a ngDialog, and wait for the map to be ready using the uiGmapIsReady promise. However, this only gets resolved the first time I open the modal. If you close the modal, and then open in again, the promise never resolves.\r\n\r\nI have worked around this by calling .promise() with 2 the first time, and then with 1 the subsequent calls. This feels like a super shitty way to do it though...\r\n\r\nAm I going about this all wrong, or is this an issue with the directive?\r\n\r\nEDIT: Typos"},"comment":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/comments/221270916","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1252#issuecomment-221270916","issue_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1252","id":221270916,"user":{"login":"armensg","id":6030955,"avatar_url":"https://avatars.githubusercontent.com/u/6030955?v=3","gravatar_id":"","url":"https://api.github.com/users/armensg","html_url":"https://github.com/armensg","followers_url":"https://api.github.com/users/armensg/followers","following_url":"https://api.github.com/users/armensg/following{/other_user}","gists_url":"https://api.github.com/users/armensg/gists{/gist_id}","starred_url":"https://api.github.com/users/armensg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armensg/subscriptions","organizations_url":"https://api.github.com/users/armensg/orgs","repos_url":"https://api.github.com/users/armensg/repos","events_url":"https://api.github.com/users/armensg/events{/privacy}","received_events_url":"https://api.github.com/users/armensg/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T13:36:24Z","updated_at":"2016-05-24T13:36:24Z","body":"@sime I tried that but I still have this issue. The promise never seems to resolve on the second time i  open the modal. The map is only rendered the first time and the second time i get these error \r\n\r\n```\r\nangular.js:13550 angular-google-maps: a center or bounds property is required(anonymous function) @ angular.js:13550(anonymous function) @ angular-google-maps.js:6689processQueue @ angular.js:15961(anonymous function) @ angular.js:15977Scope.$eval @ angular.js:17229Scope.$digest @ angular.js:17045Scope.$apply @ angular.js:17337(anonymous function) @ angular.js:25023jQuery.event.dispatch @ jquery.js:4737elemData.handle @ jquery.js:4549\r\nangular.js:13550 searchBox: the events property is required\r\n```"}}
{"actor":{"display_login":"armensg"}}